/*!
 * Projekt szablonu wygenerowany przez TheraBuilder — © 2026 TheraBuilder.
 *
 * Właściciel gabinetu otrzymuje bezterminowe prawo używania tej strony dla własnego
 * gabinetu, wraz z prawem jej modyfikowania i przenoszenia na dowolny hosting.
 * Treść strony — nazwa, teksty i zdjęcia — należy do właściciela gabinetu.
 *
 * Sam projekt szablonu (układ, arkusze stylów i kompozycja wariantów) nie jest
 * sublicencjonowalny ani odsprzedawalny. Nie wolno go wykorzystywać do budowania
 * stron dla osób trzecich ani do konkurencyjnej usługi generującej strony.
 *
 * Pełne warunki: TEMPLATE_LICENSE.md
 */
:root {
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --surface-alt: #edf3ef;
  --ink: #183229;
  --muted: #61736c;
  /* Dłuższe teksty (opisy, akapity, odpowiedzi) — ciemniejsze od --muted, kontrast ok. 7:1,
     bo przygaszony kolor przy 15–17 px jest na telefonie w słońcu trudny do czytania. */
  --text: #3d534b;
  --primary: #21624b;
  --primary-deep: #154735;
  --accent: #bd8740;
  --line: rgba(24, 50, 41, .14);
  --shadow: 0 24px 70px rgba(25, 61, 47, .12);
  --radius: 22px;
  --heading: Georgia, 'Times New Roman', serif;
  --body: Inter, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body.editor-active { padding-bottom: 84px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 3px; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; font-family: var(--heading); font-weight: 600; line-height: 1.08; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(2.7rem, 6vw, 5.7rem); letter-spacing: -.045em; }
h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 3.7rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; padding: 0 22px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-deep); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.55); }
.button-light { background: white; color: var(--primary-deep); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(18px); }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 24px; }
.brand { display: flex; min-width: 210px; align-items: center; gap: 11px; text-decoration: none; }
.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--heading); font-size: 1.02rem; }
.brand small { margin-top: 4px; color: var(--muted); }
.brand-logo, .brand-mark { width: 43px; height: 43px; flex: none; border-radius: 50%; }
.brand-logo { object-fit: contain; }
.brand-mark { display: grid; place-items: center; background: var(--primary); color: white; font-size: .8rem; font-weight: 900; letter-spacing: .06em; }
.main-nav { display: flex; margin-left: auto; align-items: center; gap: 20px; }
.main-nav a, .header-phone, .header-booking { font-size: .84rem; font-weight: 750; text-decoration: none; }
.main-nav a:hover { color: var(--primary); }
.header-phone { border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; white-space: nowrap; }
.header-booking { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid var(--primary); border-radius: 999px; padding: 0 18px; background: var(--primary); color: white; white-space: nowrap; transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s; }
.header-booking:hover { border-color: var(--primary-deep); background: var(--primary-deep); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 24%, transparent); transform: translateY(-1px); }
.menu-toggle { display: none; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface); color: var(--ink); font-weight: 800; }

.hero { position: relative; overflow: hidden; padding-top: clamp(58px, 8vw, 110px); }
.hero::before { position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); content: ''; filter: blur(3px); right: -150px; top: -120px; }
.hero-grid { display: grid; align-items: center; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: clamp(44px, 7vw, 90px); }
.hero-description { max-width: 660px; margin: 0 0 32px; color: var(--text); font-size: clamp(1.08rem, 1.8vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: grid; margin: 42px 0 0; padding: 0; grid-template-columns: repeat(3, 1fr); list-style: none; }
.hero-facts li { display: grid; padding: 0 18px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts strong { font-family: var(--heading); font-size: 1.1rem; }
.hero-facts span { color: var(--muted); font-size: .82rem; }
.hero-visual { position: relative; min-height: 520px; }
.hero-visual > img, .visual-placeholder { width: 100%; height: 520px; border-radius: 44% 44% var(--radius) var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.visual-placeholder { display: grid; place-content: center; overflow: hidden; padding: 36px; background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 48%, white), transparent 32%), linear-gradient(145deg, var(--primary), var(--primary-deep)); color: white; text-align: center; }
.visual-placeholder span { display: grid; width: 120px; height: 120px; margin: auto; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; font: 600 2.2rem var(--heading); }
.visual-placeholder p { margin: 28px 0 0; font: 600 1.5rem var(--heading); }
.visual-placeholder small { opacity: .72; }
.hero-note { position: absolute; right: -26px; bottom: 34px; display: grid; max-width: 270px; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: var(--surface); box-shadow: 0 15px 45px rgba(22,56,43,.15); }
.hero-note span { color: var(--muted); font-size: .78rem; }
.hero-note strong { font-family: var(--heading); }

.trust-strip { border-block: 1px solid var(--line); background: var(--surface); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { position: relative; padding: 34px 32px; border-left: 1px solid var(--line); }
.trust-grid > div:first-child { border-left: 0; }
.trust-grid span { position: absolute; right: 20px; color: color-mix(in srgb, var(--primary) 15%, transparent); font: 600 2.6rem var(--heading); }
.trust-grid strong { display: block; font-family: var(--heading); font-size: 1.15rem; }
.trust-grid p { margin: 6px 0 0; color: var(--text); font-size: .9rem; }

.section-heading { max-width: 720px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--text); font-size: 1.05rem; }
.services { background: var(--surface-alt); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; min-height: 270px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(22,56,43,.1); }
.service-index { position: absolute; right: 24px; top: 20px; color: color-mix(in srgb, var(--primary) 16%, transparent); font: 600 2.6rem var(--heading); }
.service-category { margin: 0 0 28px; color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.service-card h3 { margin-bottom: 12px; }
.service-card > p:not(.service-category) { color: var(--text); }
.service-meta { display: flex; flex-wrap: wrap; min-height: 25px; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 26px; color: var(--primary); }
.service-meta:empty { display: none; }
/* „Więcej o zabiegu”: przebieg i przeciwwskazania zwinięte pod opisem, bez skryptów. */
.service-details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 4px; }
.service-details > summary { display: flex; min-height: 44px; align-items: center; color: var(--primary); font-size: .9rem; font-weight: 800; cursor: pointer; }
.service-details > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-details-body p { margin: 0 0 .8em; color: var(--text); font-size: 1rem; line-height: 1.6; }
.service-details-body p:last-child { margin-bottom: 8px; }
.service-details-inline { padding-top: 12px; }
/* Cała oferta pod jednym rozwinięciem: przycisk na szerokość treści, strzałka obraca się po otwarciu. */
.services-all > .services-all-toggle { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--primary); font-weight: 800; cursor: pointer; list-style: none; box-shadow: var(--shadow); }
.services-all > .services-all-toggle::-webkit-details-marker { display: none; }
.services-all > .services-all-toggle::after { content: ''; width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.services-all[open] > .services-all-toggle { margin-bottom: 28px; }
.services-all[open] > .services-all-toggle::after { transform: translateY(3px) rotate(-135deg); }
.services-all > .services-all-toggle:hover { border-color: var(--primary); }
/* Dopisek do ceny („1 h — 60 zł, 2 h — 120 zł”) schodzi do własnego wiersza pod kwotą. */
.service-price-note { flex-basis: 100%; color: var(--muted); font-size: .88rem; font-style: normal; line-height: 1.4; }

/* Oferta w kilku kategoriach: każda kategoria to grupa z własnym nagłówkiem i własną siatką.
   Etykieta kategorii na karcie znika wewnątrz grupy — nagłówek grupy mówi to samo. Przy jednej
   kategorii nie ma nagłówka i siatka wygląda dokładnie tak jak dotąd. */
.services-group + .services-group { margin-top: clamp(40px, 5vw, 64px); }
.services-group-title { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; font-size: 1.1rem; letter-spacing: .01em; }
.services-group-title::after { flex: 1; height: 1px; background: var(--line); content: ''; }
.services-group-title + .services-grid .service-category { display: none; }

.site-gallery { overflow: hidden; background: var(--bg); }
.gallery-heading { display: grid; max-width: 840px; grid-template-columns: minmax(0,1fr) minmax(240px,.6fr); column-gap: 54px; }
.gallery-heading .eyebrow, .gallery-heading h2 { grid-column: 1; }
.gallery-heading > p:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.gallery-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; }
.gallery-card { position: relative; min-height: 320px; margin: 0; overflow: hidden; background: var(--primary-deep); grid-column: span 4; }
.gallery-card:nth-child(5n+1) { grid-column: span 7; }
.gallery-card:nth-child(5n+2) { grid-column: span 5; }
.gallery-card img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(10,32,25,.82)); content: ''; pointer-events: none; }
.gallery-card figcaption { position: absolute; z-index: 1; right: 24px; bottom: 22px; left: 24px; display: grid; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.36); }
.gallery-card figcaption span { margin-bottom: 4px; color: rgba(255,255,255,.78); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.gallery-card figcaption strong { font: 600 clamp(1.35rem,2.3vw,2rem)/1.1 var(--heading); }
.gallery-card:hover img { transform: scale(1.025); }

.about-grid { display: grid; align-items: center; grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); gap: clamp(46px, 8vw, 110px); }
.about-visual img, .calm-shape { width: 100%; aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.calm-shape { display: grid; place-items: center; overflow: hidden; background: linear-gradient(160deg, var(--primary-deep), var(--primary)); }
.calm-shape::before, .calm-shape::after, .calm-shape span { width: 58%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.3); border-radius: 50% 0 50% 50%; content: ''; transform: rotate(35deg); }
.calm-shape::after { position: absolute; width: 20%; border-color: color-mix(in srgb, var(--accent) 70%, white); }
.about-copy > p:not(.eyebrow) { color: var(--text); font-size: 1.08rem; }
.address-list { margin: 34px 0 0; }
.address-list > div { display: grid; padding: 14px 0; border-top: 1px solid var(--line); grid-template-columns: 120px 1fr; }
.address-list dt { color: var(--muted); }
.address-list dd { margin: 0; font-weight: 700; }

.team { background: var(--surface); }
.team-grid { display: grid; gap: 24px; }
.team-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); grid-template-columns: 280px 1fr; }
.portrait { min-height: 330px; background: linear-gradient(145deg, var(--primary), var(--primary-deep)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait span { display: grid; height: 100%; place-items: center; color: rgba(255,255,255,.9); font: 600 3.2rem var(--heading); }
.team-copy { align-self: center; padding: 38px; }
.team-copy > p:not(.eyebrow) { color: var(--text); }
.tag-list, .area-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tag-list li, .area-list a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; background: var(--surface); font-size: .78rem; text-decoration: none; }

.locations { background: var(--surface-alt); }
.map-grid { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); }
.site-map { width: 100%; min-height: 470px; border: 0; background: linear-gradient(160deg, var(--surface-alt), var(--surface)); }
/* Atrapa mapy: adres, „Pokaż mapę Google” i odnośnik. Ramka wchodzi w to samo miejsce po kliknięciu. */
.map-consent { position: relative; display: grid; place-items: center; padding: 32px; text-align: center; }
.map-consent-body { display: grid; justify-items: center; gap: 14px; max-width: 440px; }
.map-consent-address { margin: 0; color: var(--text); font-weight: 700; }
.map-consent-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.map-consent-note { margin: 0; color: var(--muted); font-size: .82rem; }
.map-show[hidden], .map-consent-note[hidden] { display: none; }
.map-consent.is-loaded { padding: 0; }
.map-consent iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-panel { align-self: center; padding: 40px; }
.location-panel > strong { font: 600 1.5rem var(--heading); }
.location-panel > p { color: var(--text); }
.location-panel > a { color: var(--primary); font-weight: 800; }
.location-panel h3 { margin: 34px 0 0; font-size: 1rem; }

/* Kilka gabinetów: karty pod mapą, adres główny pierwszy. Siatka sama się zawija, więc dwa
   i cztery adresy wyglądają tak samo dobrze, a na telefonie robi się z tego lista. */
.branch-list { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; }
.branch { display: grid; align-content: start; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; background: var(--surface); }
.branch-main { border-color: var(--primary); }
.branch > strong { font: 600 1.15rem var(--heading); }
.branch-address { margin: 0; color: var(--muted); }
.branch-meta { margin: 0; color: var(--muted); font-size: .82rem; }
.branch-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.branch-links a { color: var(--primary); font-weight: 800; text-decoration: none; }
/* Rezerwacja to główna akcja karty gabinetu, więc dostaje kształt przycisku, a nie odnośnika. */
.branch-booking { border: 1px solid var(--primary); border-radius: 999px; padding: 4px 14px; }

/* Opinie: cytaty w kartach, gwiazdki tekstem — czytelne bez grafik i w każdym motywie. */
.review-list { display: grid; gap: 14px; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); list-style: none; }
.review { display: grid; align-content: start; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); }
.review-stars { margin: 0; color: var(--primary); font-size: 1.05rem; letter-spacing: .15em; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0; color: var(--text); }
.review-author { margin: 0; font-weight: 700; font-size: .9rem; }

/* Pytania i odpowiedzi: natywny <details>, działa bez skryptów. */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; }
.faq-item[open] summary { color: var(--primary); }
.faq-item > p { margin: 0; padding: 0 20px 16px; color: var(--text); }

.contact { background: var(--primary-deep); color: white; }
.contact-card { display: grid; align-items: center; grid-template-columns: 1.2fr .8fr; gap: 70px; }
.contact-card h2 { max-width: 700px; }
.contact-card > div:first-child > p:last-child { color: rgba(255,255,255,.68); }
.contact-actions { display: grid; gap: 12px; }
.contact-link { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.2); font-weight: 800; text-decoration: none; }
.site-footer { padding: 58px 0 24px; background: #10271f; color: rgba(255,255,255,.88); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 50px; }
.footer-grid strong { font: 600 1.25rem var(--heading); }
.footer-grid p { color: rgba(255,255,255,.55); }
.footer-grid nav, .footer-grid > div:last-child { display: grid; align-content: start; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-legal { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .76rem; }
.footer-legal p { max-width: 780px; margin: 0; }
.footer-legal span { white-space: nowrap; }
/* „Prywatność i statystyki” — informacja o pomiarze odwiedzin, obecna na każdej stronie. Stopka ma
   własne ciemne tło (nie zmienną motywu), więc kolory to półprzezroczysta biel jak reszta stopki,
   a nie `--muted`/`--text` z formularza, które na tym tle byłyby nieczytelne. Rozwinięta treść jest
   jaśniejsza od drobnego druku, bo to tekst do przeczytania. Podkreślenie zastępuje znacznik
   rozwinięcia, który znika przy `display: flex`. */
.site-privacy-row { margin-top: 10px; }
.site-privacy > summary { width: fit-content; min-height: 44px; display: flex; align-items: center; color: rgba(255,255,255,.78); font-size: .84rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.site-privacy > summary:hover { color: #fff; }
.site-privacy p { max-width: 780px; margin: 8px 0 0; color: rgba(255,255,255,.75); font-size: .84rem; line-height: 1.55; }
.site-privacy a { color: inherit; }

.inline-editable { outline: 2px dashed color-mix(in srgb, var(--accent) 80%, white); outline-offset: 3px; cursor: text; }
.editor-toolbar { position: fixed; z-index: 1000; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; background: var(--surface); box-shadow: var(--shadow); }
.editor-toolbar button { border: 0; border-radius: 999px; padding: 10px 18px; background: var(--primary); color: white; font-weight: 800; cursor: pointer; }

/* Menu zwijane już od szerokości tabletu. Przy siedmiu i więcej pozycjach (Terapie, Cennik,
   Galeria, Filmy, Artykuły, O gabinecie, Zespół, Dojazd, Kontakt) poziomy pasek nie mieści się
   razem z marką i przyciskiem rezerwacji poniżej ~1020 px — przycisk „Umów wizytę” był obcinany
   na tabletach, a `overflow-x: clip` na html ukrywał to bez paska przewijania. */
@media (max-width: 1020px) {
  .header-inner { gap: 12px; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; margin: 0; padding: 18px 20px 24px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 18px 35px rgba(22,56,43,.12); }
  .main-nav.open { display: grid; }
  .main-nav a { display: flex; min-height: 44px; align-items: center; padding: 7px 0; }
}

@media (max-width: 980px) {
  .header-phone { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-visual { width: min(620px, 100%); }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-grid { gap: 48px; }
  .gallery-card { grid-column: span 6; }
  .gallery-card:nth-child(5n+1), .gallery-card:nth-child(5n+2) { grid-column: span 6; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 30px, 680px); }
  .section { padding: 68px 0; }
  .header-inner { min-height: 70px; flex-wrap: wrap; gap: 8px 12px; padding-block: 10px; }
  .header-booking { width: 100%; min-height: 44px; order: 3; }
  .hero { padding-top: 56px; }
  .hero-visual { min-height: auto; }
  .hero-visual > img, .visual-placeholder { height: 440px; }
  .hero-note { right: 14px; bottom: 18px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li { padding: 12px 0; border-top: 1px solid var(--line); border-left: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { border-top: 1px solid var(--line); border-left: 0; }
  .services-grid, .about-grid, .contact-card, .footer-grid { grid-template-columns: 1fr; }
  .gallery-heading { display: block; }
  .gallery-card, .gallery-card:nth-child(5n+1), .gallery-card:nth-child(5n+2) { min-height: 300px; grid-column: 1/-1; }
  .about-visual { width: min(460px,100%); }
  .team-card { grid-template-columns: 1fr; }
  .portrait { min-height: 390px; }
  .map-grid { grid-template-columns: 1fr; }
  .site-map { min-height: 360px; }
  .contact-card { gap: 34px; }
  .footer-legal { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .header-booking, .service-card, .gallery-card img { transition-property: background-color, border-color, color, box-shadow; transition-duration: .01ms; }
  .button:hover, .header-booking:hover, .service-card:hover, .gallery-card:hover img { transform: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.65rem; }
  .brand { min-width: 0; }
  .brand strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 190px; overflow: hidden; font-size: .95rem; line-height: 1.25; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-visual > img, .visual-placeholder { height: 390px; }
  .hero-note { position: relative; right: auto; bottom: auto; max-width: none; margin: -54px 14px 0; }
  /* Motywy pozycjonują plakietkę przez right/bottom; w pozycji relative te offsety wypychają ją poza kadr, więc reset musi wygrać specyficznością z regułami motywu. */
  .hero .hero-visual .hero-note { right: auto; bottom: auto; }
  .services-grid { grid-template-columns: 1fr; }
  .team-copy, .location-panel { padding: 26px; }
  .address-list > div { grid-template-columns: 1fr; gap: 4px; }
  .editor-toolbar { align-items: stretch; flex-direction: column; }
}

/* Formularz kontaktowy — opcjonalna sekcja strony. Wiadomość idzie na e-mail gabinetu. */
.contact-form-wrap { margin-top: 28px; }
.contact-form { max-width: 46rem; margin: 0 auto; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.contact-form h3 { margin: 0 0 6px; }
.contact-form-lead { margin: 0 0 20px; color: var(--text); }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-field { display: grid; gap: 6px; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field span { font-size: .88rem; font-weight: 750; }
.contact-field em { color: #a33b32; font-style: normal; }
.contact-field input, .contact-field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); background: var(--bg); color: var(--ink); font: inherit; }
.contact-field textarea { min-height: 130px; resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent); outline-offset: 2px; border-color: var(--primary); }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
/* Odstęp, który dawało dawne zdanie o „zgodzie na kontakt” — usunięte, bo podstawą jest uzasadniony interes. */
.contact-privacy + .button { margin-top: 18px; }
/* Prośba o nieopisywanie stanu zdrowia stoi przy polu wiadomości, więc musi być czytelna,
   a nie schowana w drobnym druku razem z resztą not prawnych. */
.contact-field-hint { display: block; margin: 0 0 6px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.contact-privacy { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.contact-privacy > summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: .84rem; cursor: pointer; }
.contact-privacy > summary:hover { color: var(--ink); }
.contact-privacy p { margin: 8px 0 0; color: var(--text); font-size: .9rem; line-height: 1.55; }
.contact-privacy a { color: inherit; }
.contact-form-status:empty { display: none; }
.contact-form-status { margin: 14px 0 0; font-weight: 700; }
@media (max-width: 700px) { .contact-form-grid { grid-template-columns: 1fr; } .contact-form button { width: 100%; } }

/*
 * Artykuły. Każdy z pięciu archetypów ma własną kompozycję listy i własny plik `blog.hbs`,
 * dlatego poniżej jest wyłącznie szkielet: jedna klasa układu na jeden wariant.
 * Charakter — kolory, ramy, rytm — dokłada `theme.css` danego szablonu.
 */
.blog-index { background: var(--bg); }
.blog-heading { max-width: 740px; margin-bottom: clamp(38px, 5vw, 62px); }
.blog-heading h1 { margin-bottom: 16px; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.blog-heading > p:last-child { margin: 0; color: var(--text); font-size: 1.05rem; }
.blog-date { margin: 0 0 10px; color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.blog-index h2, .blog-index h3 { margin: 0 0 12px; }
.blog-index h2 a, .blog-index h3 a { text-decoration: none; }
.blog-index h2 a:hover, .blog-index h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.blog-excerpt { max-width: 62ch; margin: 0; color: var(--text); }
.blog-more { display: inline-flex; min-height: 44px; align-items: center; margin-top: 14px; color: var(--primary); font-weight: 800; text-decoration: none; }
.blog-more:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Zen — jeden wyśrodkowany strumień, oddech zamiast obramowań. */
.blog-stream { display: grid; gap: clamp(48px, 7vw, 84px); margin: 0; padding: 0; list-style: none; }
.blog-stream-item { max-width: 680px; margin-inline: auto; text-align: center; }
.blog-stream-item + .blog-stream-item { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 84px); }
.blog-stream-image { width: 100%; height: 340px; margin: 0 0 28px; border-radius: var(--radius); object-fit: cover; }
.blog-stream .blog-excerpt { margin-inline: auto; }

/* Modern — najnowszy wpis dominuje, reszta wchodzi w siatkę. */
.blog-feature { display: grid; align-items: stretch; margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.blog-feature-visual img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.blog-feature-copy { align-self: center; padding: clamp(26px, 4vw, 44px); }
.blog-feature-copy h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.blog-tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.blog-tile h3 a { display: inline-flex; min-height: 44px; align-items: center; }

/* Premium — numerowany katalog, złote włoski zamiast kart. */
.blog-catalogue { margin: 0; padding: 0; list-style: none; }
.blog-record { display: grid; align-items: baseline; padding: clamp(22px, 3vw, 34px) 0; border-top: 1px solid var(--line); grid-template-columns: 76px minmax(0, 1fr); gap: 4px 24px; }
.blog-record:last-child { border-bottom: 1px solid var(--line); }
.blog-record-number { grid-row: 1 / span 3; color: color-mix(in srgb, var(--primary) 32%, transparent); font: 600 2.2rem var(--heading); }
.blog-record .blog-date, .blog-record h2, .blog-record .blog-excerpt { grid-column: 2; }
.blog-record h2 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }

/* Storyteller — kolejne rozdziały pełnej szerokości. */
.blog-chapters-layout { padding-block: 0; }
.blog-chapters-layout .blog-heading { padding-block: clamp(64px, 8vw, 104px) clamp(30px, 4vw, 52px); }
.blog-chapter { display: grid; align-items: center; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.blog-chapter:nth-of-type(2n) .blog-chapter-visual { order: 2; }
.blog-chapter-wide { grid-template-columns: 1fr; }
.blog-chapter-visual img { width: 100%; height: 100%; min-height: clamp(300px, 32vw, 460px); object-fit: cover; }
.blog-chapter-copy { padding: clamp(32px, 5vw, 72px); }
.blog-chapter-wide .blog-chapter-copy { width: min(1160px, calc(100% - 40px)); margin-inline: auto; padding-inline: 0; }
.blog-chapter-copy h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }

/* Clinic — gęsty rejestr z kolumną daty, pogrupowany rocznikami. */
.blog-year + .blog-year { margin-top: 42px; }
.blog-year-label { margin: 0 0 12px; color: var(--muted); font-size: .95rem; font-weight: 800; letter-spacing: .16em; }
.blog-rows { display: grid; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.blog-row { display: grid; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); grid-template-columns: 200px minmax(0, 1fr); gap: 6px 26px; }
.blog-row .blog-date { margin: 0; grid-row: 1 / span 2; }
.blog-row h3 { margin: 0; font-size: 1.2rem; }
.blog-row h3 a { display: inline-flex; min-height: 44px; align-items: center; }
.blog-row .blog-excerpt { grid-column: 2; font-size: .95rem; }

/* Strona pojedynczego wpisu — wspólna redakcyjnie, różnicowana wyłącznie motywem. */
.article { background: var(--bg); }
.article-shell { width: min(760px, calc(100% - 40px)); }
.article-back { margin: 0 0 22px; }
.article-back a { display: inline-flex; min-height: 44px; align-items: center; color: var(--primary); font-weight: 800; text-decoration: none; }
.article-back a:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-head h1 { margin-bottom: 16px; font-size: clamp(2.2rem, 4.4vw, 3.7rem); }
.article-lead { margin: 0; color: var(--text); font-size: 1.16rem; }
.article-figure { margin: 34px 0 0; }
.article-figure img { width: 100%; max-height: 520px; border-radius: var(--radius); object-fit: cover; }
.article-body { margin-top: 34px; font-size: 1.07rem; }
.article-body p { max-width: 68ch; margin: 0 0 1.25em; }
.article-body p:last-child { margin-bottom: 0; }
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-foot strong { display: block; font-family: var(--heading); font-size: 1.15rem; }
.article-foot span { color: var(--muted); font-size: .92rem; }
.article-foot-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.article-more { background: var(--surface-alt); }
.article-more-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; list-style: none; }
.article-more-date { margin: 0 0 8px; color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-more-list h3 { margin: 0 0 8px; font-size: 1.18rem; }
.article-more-list h3 a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.article-more-list h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.article-more-list li > p:last-child { max-width: 46ch; margin: 0; color: var(--text); font-size: 1rem; }

@media (max-width: 980px) {
  .blog-feature, .blog-chapter { grid-template-columns: 1fr; }
  .blog-chapter:nth-of-type(2n) .blog-chapter-visual { order: 0; }
  .article-more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .blog-grid, .article-more-list { grid-template-columns: 1fr; }
  .blog-stream-image { height: 260px; }
  .blog-record { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
  .blog-record-number { font-size: 1.6rem; }
  .blog-row { grid-template-columns: 1fr; }
  .blog-row .blog-date, .blog-row .blog-excerpt { grid-row: auto; grid-column: 1; }
  .article-shell { width: min(100% - 30px, 680px); }
  .article-foot { align-items: flex-start; flex-direction: column; }
  .article-foot-actions { width: 100%; }
  .article-foot-actions .button { width: 100%; }
}

/* Tekst wyłącznie dla czytników ekranu. Klasy brakowało w arkuszu stron, więc etykieta
   „Strona ” przy numerze była widoczna dla wszystkich. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- stronicowanie listy wpisów ---------- */
/* Wspólny szkielet nawigacji; motyw różnicuje ją kolorem i typografią, tak jak resztę strony.
   Cele dotykowe mają 44 px, bo to jedyny element listy obsługiwany wyłącznie palcem. */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.blog-pagination-step {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.blog-pagination-step:hover { text-decoration: underline; text-underline-offset: 5px; }
.blog-pagination-step.is-disabled { color: var(--muted); opacity: .45; }
.blog-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-pagination-page {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.blog-pagination-page:hover { border-color: var(--ink); }
.blog-pagination-page.is-current {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}
@media (max-width: 640px) {
  .blog-pagination { justify-content: center; gap: 10px; }
  .blog-pagination-pages { order: -1; width: 100%; }
}

/* ---------- cennik ---------- */
/* Zwięzła lista: nazwa prowadzi do karty usługi, czas w środku, cena z prawej. Grupy jak w ofercie. */
.price-list { background: var(--surface); }
/* Grupy zwinięte natywnym <details>: nagłówek kategorii jest przyciskiem, znak +/– zamiast
   domyślnego trójkąta, cel dotykowy 56 px. */
.price-groups { display: grid; border-top: 1px solid var(--line); }
.price-group { border-bottom: 1px solid var(--line); }
.price-group-title { display: flex; min-height: 56px; align-items: center; gap: 14px; margin: 0; padding: 8px 44px 8px 0; position: relative; color: var(--ink); font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none; }
.price-group-title::-webkit-details-marker { display: none; }
.price-group-title::after { position: absolute; right: 0; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--primary); content: '+'; font: 700 1.1rem/1 var(--body); }
.price-group[open] > .price-group-title::after { content: '–'; }
.price-group-title:hover { color: var(--primary); }
.price-group-count { color: var(--muted); font-size: .84rem; font-weight: 500; }
.price-rows { display: grid; margin: 0 0 10px; padding: 0; list-style: none; }
.price-row { display: grid; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr) 100px minmax(150px, auto); gap: 6px 20px; }
.price-name { display: inline-flex; min-height: 44px; align-items: center; color: inherit; font-weight: 700; text-decoration: none; }
.price-name:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.price-duration { color: var(--muted); font-size: .9rem; }
.price-value { display: grid; justify-items: end; color: var(--primary); font-weight: 800; text-align: right; }
.price-value small { color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 1.4; }

/* ---------- filmy ---------- */
/* Ramka jest atrapą do chwili kliknięcia — odtwarzacz serwisu wchodzi dopiero wtedy (site.js). */
.videos { background: var(--surface-alt); }
.video-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; list-style: none; }
.video-card { display: grid; align-content: start; gap: 14px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: linear-gradient(145deg, var(--primary), var(--primary-deep)); box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { display: grid; width: 100%; height: 100%; place-content: center; justify-items: center; gap: 6px; border: 0; padding: 24px; background: transparent; color: #fff; cursor: pointer; }
.video-play-icon { display: grid; width: 64px; height: 64px; place-items: center; border: 2px solid rgba(255,255,255,.72); border-radius: 50%; font-size: 1.25rem; transition: background-color .2s, transform .2s; }
.video-play-label { font-weight: 800; }
.video-play small { color: rgba(255,255,255,.72); font-size: .78rem; }
.video-play:hover .video-play-icon { background: rgba(255,255,255,.16); transform: scale(1.05); }
.video-copy h3 { margin: 0 0 6px; font-size: 1.2rem; }
.video-copy p { margin: 0 0 6px; color: var(--text); }
.video-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--primary); font-weight: 800; text-decoration: none; }
.video-link:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- kwalifikacje ---------- */
.credentials { background: var(--surface); }
.credential-list { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; list-style: none; }
.credential { display: grid; align-items: start; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--bg); grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.credential > .credential-copy:only-child { grid-column: 1 / -1; }
.credential-scan { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); background: #fff; }
.credential-scan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.credential-copy { display: grid; gap: 4px; }
.credential-year { color: var(--accent); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.credential-copy strong { font-size: 1rem; line-height: 1.35; }
.credential-issuer { color: var(--muted); font-size: .9rem; }

/* ---------- profile społecznościowe ---------- */
/* W ciemnej sekcji kontaktu i w stopce — odziedziczony biały tekst, delikatna ramka. */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social-links a { display: inline-flex; min-height: 44px; align-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 0 16px; font-size: .84rem; font-weight: 750; text-decoration: none; }
.social-links a:hover { border-color: rgba(255,255,255,.7); }

/* Pole wyboru gabinetu w formularzu kontaktowym — ten sam wygląd co pozostałe pola. */
.contact-field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: calc(var(--radius) / 2); background: var(--bg); color: var(--ink); font: inherit; }
.contact-field select:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 22%, transparent); outline-offset: 2px; border-color: var(--primary); }

/* Filia umawiająca wyłącznie telefonicznie mówi to wprost, zamiast pokazywać cudzy kalendarz. */
.branch-phone-note { color: var(--primary); font-weight: 700; }

/* ---------- wybór gabinetu przed rezerwacją ---------- */
/* Natywny <dialog>: przy kilku adresach przycisk „Umów wizytę” najpierw pyta, gdzie. */
.booking-chooser { width: min(560px, calc(100% - 32px)); border: 0; border-radius: var(--radius); padding: 0; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.booking-chooser::backdrop { background: rgba(16, 39, 31, .55); }
.booking-chooser-card { padding: clamp(22px, 4vw, 34px); }
.booking-chooser-head { position: relative; padding-right: 56px; }
.booking-chooser-head h2 { margin-bottom: 18px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.booking-chooser-close { position: absolute; top: -6px; right: 0; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.booking-chooser-close:hover { border-color: var(--primary); color: var(--primary); }
.booking-chooser-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.booking-chooser-option { display: grid; align-items: center; border: 1px solid var(--line); border-radius: calc(var(--radius) / 1.5); padding: 16px 18px; background: var(--bg); grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
.booking-chooser-option > div { display: grid; gap: 2px; }
.booking-chooser-option strong { font-family: var(--heading); font-size: 1.1rem; }
.booking-chooser-option span, .booking-chooser-option small { color: var(--muted); }
.booking-chooser-option .button { min-height: 44px; white-space: nowrap; }
.booking-chooser-foot { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.booking-chooser-foot a { color: var(--primary); font-weight: 800; }
@media (max-width: 520px) {
  .booking-chooser-option { grid-template-columns: 1fr; }
  .booking-chooser-option .button { width: 100%; }
}

@media (max-width: 640px) {
  .price-row { grid-template-columns: 1fr; gap: 2px; }
  .price-value { justify-items: start; text-align: left; }
  .credential { grid-template-columns: 1fr; }
  .credential-scan img { aspect-ratio: 3 / 2; }
}
