/* ============================================================
   Perfekt Med - projekt 2 "Ciepły gabinet"
   Krem, szałwiowa zieleń, miedź; serif w nagłówkach;
   sygnatura: motyw łuku (arch) - rama hero, awatary, markery.
   ============================================================ */

:root {
  --c-bg: #FAF7F2;
  --c-surface: #FFFFFF;
  --c-bg-deep: #3E5C50;
  --c-bg-deep-dark: #2E463C;
  --c-primary: #3E5C50;
  --c-primary-dark: #2E463C;
  --c-accent: #C07856;
  --c-accent-dark: #A9633F;
  --c-text: #2E3A34;
  --c-muted: #5C6B62;
  --c-border: #E5DDD1;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 26px;
  --shadow-card: 0 12px 32px rgba(46, 58, 52, .10);
  --container: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.18; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent-dark); }
ul { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius); transition: top .2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Sygnatura: miedziana kreska i kropka ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .16em; color: var(--c-accent-dark); margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 18px; height: 2px; flex: none;
  background: var(--c-accent); border-radius: 2px;
}
.crosslist { list-style: none; padding: 0; }
.crosslist li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.crosslist li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px;
  background: var(--c-accent); border-radius: 50%;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* ---------- Topbar ---------- */
.topbar { background: var(--c-bg-deep); font-size: .82rem; }
.topbar__inner { display: flex; gap: 24px; justify-content: flex-end; padding-block: 7px; color: rgba(250,247,242,.85); }
.topbar__item { white-space: nowrap; }
a.topbar__item { color: rgba(250,247,242,.85); text-decoration: none; }
a.topbar__item:hover { color: #fff; }

/* ---------- Header / nawigacja ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--c-border); box-shadow: 0 4px 20px rgba(46,58,52,.07); }
.header__inner { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.header.is-scrolled .header__inner { padding-block: 11px; }

.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.logo__name {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--c-text); letter-spacing: .01em;
}
.logo__name strong { font-weight: 700; color: var(--c-accent-dark); }
.logo__sub {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .22em; color: var(--c-muted); font-family: var(--font-sans);
}
/* Przełącznik języka w topbarze (mod_languages) */
.topbar__lang { display: inline-flex; align-items: center; }
.topbar__lang .mod-languages, .topbar__lang .mod-languages__list { margin: 0; padding: 0; }
.topbar__lang .mod-languages__list { list-style: none; display: flex; gap: 8px; align-items: center; }
.topbar__lang .mod-languages__list li { display: inline-flex; align-items: center; text-transform: uppercase; letter-spacing: .04em; }
.topbar__lang img { display: block; height: 15px; width: auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); opacity: .92; transition: opacity .15s ease, transform .15s ease; }
.topbar__lang a:hover img { opacity: 1; transform: translateY(-1px); }
.topbar__lang a { color: rgba(250,247,242,.85); text-decoration: none; font-weight: 600; }
.topbar__lang a:hover, .topbar__lang .lang-active { color: #fff; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li > a, .nav__dropbtn {
  display: block; padding: 9px 13px; font-size: .93rem; font-weight: 500;
  color: var(--c-text); text-decoration: none; border-radius: 999px;
  background: none; border: 0; font-family: var(--font-sans); cursor: pointer;
}
.nav__list > li > a:hover, .nav__dropbtn:hover { color: var(--c-primary); background: rgba(62,92,80,.08); }
.nav__list > li > a[aria-current="page"] { color: var(--c-accent-dark); font-weight: 600; }

.nav__dropdown { position: relative; }
.nav__dropbtn::after {
  content: ""; display: inline-block; margin-left: 7px; width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.nav__dropdown.is-open .nav__dropbtn::after { transform: rotate(225deg) translateY(-2px); }
.nav__submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 8px; margin: 0; list-style: none;
  display: none; z-index: 60; max-height: min(70vh, 560px); overflow-y: auto;
}
.nav__dropdown.is-open .nav__submenu { display: block; }
.nav__submenu a {
  display: block; padding: 8px 14px; font-size: .9rem; color: var(--c-text);
  text-decoration: none; border-radius: 999px;
}
.nav__submenu a:hover { background: rgba(62,92,80,.08); color: var(--c-primary); }
.nav__submenu a[aria-current="page"] { color: var(--c-accent-dark); font-weight: 600; }

.header__cta { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  /* topbar widoczny na mobile: zawijanie + wyśrodkowanie, mniejszy; chowany gdy menu otwarte */
  .topbar__inner { flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: .72rem; padding-block: 6px; }
  body.nav-locked .topbar { display: none; }
  .header__cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px; cursor: pointer;
    position: relative; z-index: 45; /* nad panelem menu (z-index 40) */
  }
  .logo { position: relative; z-index: 45; background: var(--c-bg); }
  .header { background: var(--c-bg); }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--c-text); position: relative;
  }
  .nav-toggle__bar::before { position: absolute; top: -6px; }
  .nav-toggle__bar::after { position: absolute; top: 6px; }
  .nav {
    position: fixed; inset: 0; margin: 0; padding: 76px 24px 32px;
    background: var(--c-bg); display: none; overflow-y: auto; z-index: 40;
  }
  .nav.is-open { display: block; }
  body.nav-locked { overflow: hidden; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list > li > a, .nav__dropbtn { padding: 13px 12px; font-size: 1.05rem; width: 100%; text-align: left; }
  .nav__submenu {
    position: static; display: none; border: 0; box-shadow: none; padding-left: 18px; max-height: none; background: transparent;
  }
  .nav__dropdown.is-open .nav__submenu { display: block; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(60px, 8vw, 104px); }
/* sąsiadujące zwykłe sekcje (bez tła) nie dublują pionowego odstępu - np. treść + moduły pod nią.
   Sekcje ze zmianą tła (--alt/--deep) zachowują pełny padding (rytm strony głównej bez zmian). */
.section:not(.section--alt):not(.section--deep) + .section:not(.section--alt):not(.section--deep) { padding-top: 0; }
.section--alt { background: var(--c-surface); }
.section--deep { background: var(--c-bg-deep); color: #F4EFE7; }
.section--deep h2, .section--deep h3 { color: #FFFFFF; }
.section--deep p { color: rgba(244,239,231,.85); }
.section--deep .kicker { color: #E9C4AE; }
.section--deep .kicker::before { background: #E9C4AE; }
.section--deep .crosslist li, .section--deep .split .crosslist li { color: #F4EFE7; }
.section--deep .crosslist li::before { background: #E9C4AE; }
.section__head { max-width: 640px; margin-bottom: clamp(28px, 5vw, 48px); }
.section__foot { margin-top: clamp(28px, 4vw, 44px); text-align: center; }

/* ---------- Hero dzielone ---------- */
.hero-split { padding-block: clamp(40px, 7vw, 88px); }
.hero-split__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero-split h1 { margin-bottom: .4em; }
.hero-split__lead { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: var(--c-muted); max-width: 34em; }
.hero-split__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.hero-split__media { position: relative; }
.hero-split__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
}
.hero-split__media::before {
  content: ""; position: absolute; inset: -18px auto auto -18px; width: 96px; height: 96px;
  border: 2px solid var(--c-accent); border-radius: 50%;
  opacity: .45; z-index: -1;
}
@media (max-width: 900px) {
  .hero-split__grid { grid-template-columns: 1fr; }
  .hero-split__media { order: -1; max-width: 420px; margin-inline: auto; justify-self: center; }
}

/* ---------- Wstęga rabatu ---------- */
.promo { background: var(--c-bg-deep); color: #F4EFE7; }
.promo__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 28px; padding-block: 22px;
}
.promo__text { margin: 0; font-family: var(--font-serif); font-size: 1.12rem; letter-spacing: .01em; }
.promo__text strong { color: #E9C4AE; }
.promo .btn { background: var(--c-accent); color: #fff; }
.promo .btn:hover { background: var(--c-accent-dark); color: #fff; }

/* ---------- Filary (poziome pasy) ---------- */
.pillars { display: grid; gap: 0; }
.pillar {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: center;
  padding-block: 26px; border-bottom: 1px solid var(--c-border);
}
.pillar:first-child { border-top: 1px solid var(--c-border); }
.pillar__icon {
  width: 72px; height: 72px; color: var(--c-primary);
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.pillar__icon svg { width: 34px; height: 34px; }
.pillar h3 { margin-bottom: .2em; }
.pillar p { color: var(--c-muted); font-size: .95rem; margin: 0; max-width: 60ch; }
@media (max-width: 600px) {
  .pillar { grid-template-columns: 64px 1fr; gap: 16px; }
  .pillar__icon { width: 56px; height: 56px; }
}

/* ---------- Sekcja tekst + obraz ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--reverse { grid-template-columns: .95fr 1.05fr; }
.split.doctor-profile { align-items: start; }

/* Galeria certyfikatów (profile lekarzy) */
.cert-gallery { display: flex; flex-wrap: wrap; gap: 14px; }
.cert-gallery a { display: block; line-height: 0; }
.cert-gallery img {
  width: 158px; height: 210px; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--c-border);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cert-gallery a:hover img { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* ---------- Link powrotu (profil lekarza) ---------- */
.back-link { margin: 20px 0 -8px; font-size: .95rem; }
.back-link a { color: var(--c-muted); text-decoration: none; font-weight: 600; transition: color .15s ease; }
.back-link a:hover { color: var(--c-primary); }

/* ---------- Lightbox (reużywalny podgląd galerii) ---------- */
body.is-lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 40px; gap: 8px;
  background: rgba(30, 38, 34, .92);
  animation: lightbox-in .18s ease;
}
.lightbox.is-open { display: flex; }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lightbox__img {
  max-width: min(90vw, 900px); max-height: 88vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  background: #fff;
}
.lightbox__close {
  position: absolute; top: 18px; right: 22px;
  width: 46px; height: 46px; line-height: 1;
  font-size: 30px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%;
  cursor: pointer; transition: background .15s ease;
}
.lightbox__nav {
  flex: 0 0 auto;
  width: 50px; height: 50px; line-height: 1;
  font-size: 30px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%;
  cursor: pointer; transition: background .15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox--single .lightbox__nav { display: none; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox__close { top: 10px; right: 12px; }
}
.split__media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 460px; margin-inline: auto; }
.split .lead { font-family: var(--font-serif); font-size: 1.18rem; color: var(--c-text); }
.split p { color: var(--c-muted); }
.split .crosslist li { color: var(--c-text); font-size: .97rem; }
@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split__media { order: -1; }
}

/* ---------- Karty usług (numerowane) ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: usluga; }
.service-card {
  counter-increment: usluga;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 24px 22px 20px; text-decoration: none; color: var(--c-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card::before {
  content: counter(usluga, decimal-leading-zero);
  font-family: var(--font-serif); font-size: 1rem; color: var(--c-accent);
  border-bottom: 2px solid var(--c-accent); align-self: flex-start; padding-bottom: 4px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--c-accent); color: var(--c-text); }
.service-card h3 { font-size: 1.05rem; margin: 0; }
.service-card span { display: none; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Lekarze ---------- */
.doctors-preview, .doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doctor {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 28px 22px 24px; text-align: center;
}
.doctor__avatar {
  width: 78px; height: 78px; margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-bg); border: 1px solid var(--c-accent);
  color: var(--c-primary); font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: .04em;
}
.doctor__photo {
  width: 110px; height: 110px; margin: 0 auto 16px;
  border-radius: 50%; object-fit: cover; object-position: center top;
  border: 1px solid var(--c-accent); display: block;
}
.doctor__name { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin: 0 0 4px; }
.doctor__spec { font-size: .85rem; color: var(--c-muted); margin: 0; }
a.doctor { text-decoration: none; color: inherit; display: block; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--c-accent); color: inherit; }
/* Filtr: przywróć działanie atrybutu hidden mimo jawnego display na a.doctor */
.doctor[hidden] { display: none; }
@media (max-width: 1000px) { .doctors-preview, .doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .doctors-preview, .doctors-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (podstrony) ---------- */
.page-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding-block: clamp(44px, 7vw, 80px); }
.page-hero h1 { margin-bottom: .25em; }
.page-hero__lead { color: var(--c-muted); max-width: 56em; margin: 0; }

/* ---------- Layout z boczną nawigacją ---------- */
.layout-with-aside {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.aside-nav {
  position: sticky; top: 100px;
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px;
  background: var(--c-surface);
}
.aside-nav h2 { font-family: var(--font-sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted); margin-bottom: 12px; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; }
.aside-nav a {
  display: block; padding: 8px 14px; font-size: .92rem; color: var(--c-text);
  text-decoration: none; border-radius: 999px;
}
.aside-nav a:hover { background: rgba(62,92,80,.08); color: var(--c-primary); }
.aside-nav a[aria-current="page"] {
  color: #fff; font-weight: 600; background: var(--c-primary);
}
@media (max-width: 900px) {
  .layout-with-aside { grid-template-columns: minmax(0, 1fr); }
  .aside-nav { position: static; }
}

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.1em; }
.prose h3 { margin-top: .9em; font-size: 1.15rem; }
/* nagłówek tuż pod nagłówkiem (tytuł sekcji + podsekcja) - zbliż, bez podwójnej przerwy */
.prose h2 + h3, .prose h2 + h2, .prose h3 + h3 { margin-top: .25em; }
.prose > :first-child { margin-top: 0; }
.prose p { color: var(--c-muted); }
.prose > p:first-of-type { color: var(--c-text); font-family: var(--font-serif); font-size: 1.12rem; }
.prose details {
  border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 18px 22px; margin-top: 2em; background: var(--c-surface);
}
.prose summary { cursor: pointer; font-weight: 600; color: var(--c-text); }

/* Grafiki w treści */
.prose figure.content-figure { margin: 2em 0; }
.prose .content-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.prose .content-figure figcaption { margin-top: 8px; font-size: .85rem; color: var(--c-muted); text-align: center; }
.prose .content-figure--center { text-align: center; }
.prose .content-figure--center img { width: auto; max-width: min(100%, 320px); margin-inline: auto; box-shadow: none; }

/* ---------- Cennik (karta) ---------- */
.price-wrap {
  overflow-x: auto; margin-block: 1.5em;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(16px, 3vw, 28px);
}
.price-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.price-table caption {
  text-align: left; font-family: var(--font-serif); font-size: 1.15rem; color: var(--c-text); padding-bottom: 14px;
}
.price-table th, .price-table td { padding: 13px 12px; border-bottom: 1px solid var(--c-border); text-align: left; }
.price-table thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted); font-weight: 600;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:last-child { font-weight: 600; color: var(--c-accent-dark); }
.price-note { font-size: .84rem; color: var(--c-muted); }
.price-note--currency { margin-top: .5rem; font-style: italic; }

/* ---------- Zaślepka ---------- */
.placeholder-note {
  border: 1px dashed var(--c-accent); border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px); background: var(--c-surface);
}
.placeholder-note h2 { font-size: 1.4rem; }
.placeholder-note p { color: var(--c-muted); max-width: 52em; }
.placeholder-note .btn { margin-top: 8px; }

/* ---------- Filtr lekarzy (pigułki) ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.filter button {
  padding: 10px 20px; font: inherit; font-size: .88rem; font-weight: 500;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 999px;
  cursor: pointer; color: var(--c-text); transition: background .15s, color .15s, border-color .15s;
}
.filter button:hover { border-color: var(--c-primary); color: var(--c-primary); }
.filter button.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
}
.contact-card h2 { font-size: 1.4rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 11px 0; border-bottom: 1px solid var(--c-border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { text-decoration: none; font-weight: 600; color: var(--c-accent-dark); }
.contact-list .label {
  display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-muted);
}

.map-placeholder {
  margin-top: 22px; border: 1px dashed var(--c-accent); border-radius: var(--radius-lg);
  background: var(--c-surface); padding: 44px 24px 40px; text-align: center; color: var(--c-muted); font-size: .92rem;
}
.map-placeholder strong { display: block; color: var(--c-text); font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 4px; }

/* Osadzona mapa Google */
.map-embed { margin-top: 22px; }
.map-embed iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius-lg); display: block; }

/* Formularz kontaktu (com_contact) w karcie */
.contact-card input[type="text"], .contact-card input[type="email"], .contact-card input[type="tel"],
.contact-card input[type="url"], .contact-card textarea {
  width: 100%; padding: 12px 16px; font: inherit; font-size: .95rem;
  border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg); color: var(--c-text);
}
.contact-card textarea { min-height: 130px; resize: vertical; }
.contact-card .control-group, .contact-card .control-label, .contact-card .controls { margin-bottom: 14px; }
.contact-card label { font-size: .86rem; font-weight: 600; display: block; margin-bottom: 6px; }
.contact-card input:focus-visible, .contact-card textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.contact-card .btn, .contact-card button[type="submit"] {
  display: inline-block; padding: 13px 30px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  background: var(--c-accent); color: #fff; margin-top: 8px;
}
.contact-card .btn:hover, .contact-card button[type="submit"]:hover { background: var(--c-accent-dark); }
.contact-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-card legend { border: 0; width: auto; padding: 0; margin: 0 0 10px; font-size: .95rem; font-weight: 600; color: var(--c-text); }

.form { display: grid; gap: 16px; }
.form label { font-size: .86rem; font-weight: 600; display: block; margin-bottom: 6px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  width: 100%; padding: 12px 16px; font: inherit; font-size: .95rem;
  border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-bg);
  color: var(--c-text);
}
.form input:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
.form textarea { min-height: 130px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--c-muted); }
.form__consent input { margin-top: 3px; flex: none; }
.form__rodo { font-size: .8rem; color: var(--c-muted); }

/* ---------- Stopka ---------- */
.footer { background: var(--c-bg-deep-dark); color: rgba(244,239,231,.8); }
.footer a { color: rgba(244,239,231,.9); text-decoration: none; }
.footer a:hover { color: #E9C4AE; }
.footer__grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 64px);
}
.footer__logo { font-family: var(--font-serif); font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.footer__logo strong { color: #E9C4AE; }
.footer__nav { list-style: none; margin: 0; padding: 0; }
.footer__nav li { margin-bottom: 8px; }
.footer__heading {
  font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
  color: rgba(244,239,231,.5); margin: 0 0 14px;
}
.footer__bottom {
  border-top: 1px solid rgba(244,239,231,.15); padding-block: 18px;
  font-size: .82rem; color: rgba(244,239,231,.5);
}
.footer__bottom p { margin: 0; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }

/* [data-reveal] nieużywane w projekcie 2 - spokojny charakter; gdyby markup
   je zawierał, elementy pozostają widoczne */
[data-reveal] { opacity: 1; transform: none; }
