/*
Theme Name: Aurea
Theme URI: https://itsolutionsdz.pl
Author: ITSolutions
Author URI: https://itsolutionsdz.pl
Description: Aurea — stomatologia estetyczna. Autorski motyw blokowy (FSE) w kierunku "Porcelana i złoto": kość słoniowa, butelkowa zieleń, złoty akcent. Fonty self-hosted przez theme.json, zero wtyczek.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurea
*/

/* ══ Tokeny kierunku "Porcelana i złoto" — 1:1 z design-tokens.json ══
   --cream / --divider-cream: sformalizowany mikro-token kremu #E9DFC8 i jego
   hairline'u rgba(233,223,200,.28) na ciemnych powierzchniach (por. design/pages/v1-layout*). */
:root {
  --brand:        #14493B;
  --gold:         #A8842C;
  --gold-text:    #8A6516;
  --bg:           #F6F1E7;
  --surface:      #FDFBF4;
  --text:         #1F2D26;
  --text-muted:   #5A685D;
  --cream:        #E9DFC8;
  --divider-cream: rgba(233, 223, 200, .28);
  --btn-outline:  var(--brand);
  --btn-text:     var(--brand);
  --btn-fill-hover: var(--brand);
  --btn-text-hover: #F6F1E7;
  --link:         var(--brand);
  --line:         rgba(20, 73, 59, .16);
  --arc:          rgba(168, 132, 44, .55);
  --shadow:       0 30px 70px -45px rgba(20, 73, 59, .45);
  --header-bg:    rgba(246, 241, 231, .92);
  --content-size: 800px;
  --wide-size:    1280px;
  --gutter:       clamp(1rem, 4vw, 2rem);
  color-scheme: light;
}
[data-theme="dark"] {
  --brand:        #217962;
  --gold:         #C9A75C;
  --gold-text:    #C9A75C;
  --bg:           #0F1E19;
  --surface:      #16241E;
  --text:         #EDE7D6;
  --text-muted:   #A8B3A4;
  --btn-outline:  var(--cream);
  --btn-text:     var(--cream);
  --btn-fill-hover: var(--cream);
  --btn-text-hover: #0F1E19;
  --link:         #C9A75C;
  --line:         rgba(201, 167, 92, .26);
  --arc:          rgba(201, 167, 92, .4);
  --shadow:       0 30px 70px -45px rgba(0, 0, 0, .9);
  --header-bg:    rgba(15, 30, 25, .92);
  color-scheme: dark;
}
/* Motyw nie wstrzykuje JS ustawiającego data-theme — tryb ciemny steruje preferencja systemowa. */
@media (prefers-color-scheme: dark) {
  :root {
    --brand:        #217962;
    --gold:         #C9A75C;
    --gold-text:    #C9A75C;
    --bg:           #0F1E19;
    --surface:      #16241E;
    --text:         #EDE7D6;
    --text-muted:   #A8B3A4;
    --btn-outline:  var(--cream);
    --btn-text:     var(--cream);
    --btn-fill-hover: var(--cream);
    --btn-text-hover: #0F1E19;
    --link:         #C9A75C;
    --line:         rgba(201, 167, 92, .26);
    --arc:          rgba(201, 167, 92, .4);
    --shadow:       0 30px 70px -45px rgba(0, 0, 0, .9);
    --header-bg:    rgba(15, 30, 25, .92);
    color-scheme: dark;
  }
}

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

html { scroll-padding-top: 6.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: "Jost", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color .4s ease, color .4s ease;
  counter-reset: edsec;
}

.skip-link {
  position: absolute; left: -999px; top: .6rem; z-index: 100;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: .5em 1.4em; font-size: .85rem; text-decoration: none;
}
.skip-link:focus-visible { left: .6rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
  position: absolute; left: .6rem; top: .6rem;
  width: auto; height: auto; margin: 0; padding: .5em 1.4em;
  overflow: visible; clip: auto; white-space: normal;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.wide { max-width: var(--wide-size); margin-inline: auto; padding-inline: var(--gutter); }
/* Celowo NIE portujemy martwej klasy .content z makiet (nieużywana w markupie). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Wzorce mikrotypograficzne ── */
.eyebrow {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 1.1rem;
}
.lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 52ch;
  margin-bottom: 2.1rem;
}
.lead a, .goldlink,
.doc-links a, .svc-price-row a, .hours-note a {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: var(--gold);
  transition: text-decoration-color .25s ease, color .25s ease, text-decoration-thickness .25s ease;
}
.lead a:hover, .goldlink:hover,
.doc-links a:hover, .svc-price-row a:hover, .hours-note a:hover { text-decoration-thickness: 2px; color: var(--gold-text); }

/* ── Wzorzec: przyciski pill z obrysem (mapowane też na core/button) ── */
.actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.wp-block-buttons.actions { gap: .9rem; }
.btn,
.wp-block-button .wp-block-button__link {
  font-family: "Jost", sans-serif;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: .85em 2em;
  cursor: pointer;
  display: inline-block;
  transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.wp-block-button.btn--primary .wp-block-button__link { color: var(--btn-text); border: 1.5px solid var(--btn-outline); background: transparent; }
.wp-block-button.btn--primary .wp-block-button__link:hover {
  background: var(--btn-fill-hover);
  color: var(--btn-text-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(20, 73, 59, .7);
}
.wp-block-button.btn--secondary .wp-block-button__link { color: var(--text); border: 1px solid var(--gold); background: transparent; }
.wp-block-button.btn--secondary .wp-block-button__link:hover { border-color: var(--gold-text); color: var(--gold-text); transform: translateY(-2px); }
.wp-block-button.btn--sm .wp-block-button__link { font-size: .78rem; padding: .65em 1.5em; }

/* Ghost-pill (w makiecie .theme-toggle/.nav-toggle) — mapowany na przyciski
   otwierania/zamykania menu core/navigation. */
.theme-toggle, .nav-toggle,
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  font-family: "Jost", sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45em 1.1em;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.theme-toggle:hover, .nav-toggle:hover,
.wp-block-navigation__responsive-container-open:hover,
.wp-block-navigation__responsive-container-close:hover { border-color: var(--gold); color: var(--gold-text); }
.theme-toggle:focus-visible, .nav-toggle:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible,
.wp-block-button__link:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Wzorzec: cennik z migoczącym separatorem ── */
.price-label {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: .4rem;
}
.price-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 60%);
  background-size: 200% 100%;
  animation: blask 7s ease-in-out infinite alternate;
}
@keyframes blask {
  from { background-position: 0% 0; }
  to   { background-position: 100% 0; }
}
.price {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--gold-text);
  white-space: nowrap;
}

/* ── Wzorzec: cytat (mapowany na core/quote: footer → cite) ── */
blockquote, .wp-block-quote {
  position: relative;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.55;
  text-wrap: pretty;
  padding-left: 1.4rem;
  border-left: 1px solid var(--gold);
  margin: 0;
  box-shadow: none;
}
.wp-block-quote p { margin: 0; }
blockquote footer, .wp-block-quote cite {
  display: block;
  margin-top: .7rem;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Wzorzec: meta + diament ── */
.meta {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.diament { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
/* W markupie blokowym diament między pozycjami .meta generuje CSS (bez pustych spanów): */
.meta > span { display: inline-flex; align-items: center; gap: .9rem; }
.meta > span + span::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

/* ── Wzorzec: karta / powierzchnia ── */
.tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: background-color .4s ease, border-color .4s ease;
}

/* ── Wzorzec: złote łuki ── */
.arcs, .arcs::before, .arcs::after { position: absolute; border-radius: 50%; pointer-events: none; }
.arcs { top: -150px; right: -150px; width: 340px; height: 340px; border: 1px solid var(--arc); }
.arcs::before { content: ""; inset: 26px; border: 1px dashed var(--arc); animation: obrot 80s linear infinite; }
.arcs::after { content: ""; inset: 58px; border: 1px solid var(--arc); opacity: .6; }
@keyframes obrot { to { transform: rotate(360deg); } }

/* ── Wzorzec: reveal przy wejściu (czysty CSS — hero/nagłówki podstron).
      TYLKO transform, BEZ opacity: element animowany od opacity:0 jest wykluczany
      z kandydatur LCP w Chrome → LCP spadał na drobny eyebrow (PSI mobile 3,2 s).
      `pojaw` (fade) zostaje dla FAQ (interakcja, nie load). ── */
.reveal { animation: pojaw-ruch .8s ease both; }
.reveal:nth-child(2) { animation-delay: .08s; }
.reveal:nth-child(3) { animation-delay: .16s; }
.reveal:nth-child(4) { animation-delay: .24s; }
.reveal:nth-child(5) { animation-delay: .32s; }
.reveal:nth-child(6) { animation-delay: .4s; }
.reveal:nth-child(7) { animation-delay: .48s; }
@keyframes pojaw {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pojaw-ruch {
  from { transform: translateY(14px); }
  to   { transform: none; }
}

/* ── Reveal przy scrollu — kontrakt assets/js/fx.js (.aurea-reveal + .is-visible);
      te same wartości ruchu co wzorzec (fade-up 14px / .8s / stagger .08s).
      Ukrycie uzbraja dopiero html.fx (dodawane w fx.js) — pierwszy paint przed JS
      pokazuje wszystko, więc LCP (hero/H1) nie czeka na skrypt (PSI: render delay). ── */
@media (prefers-reduced-motion: no-preference) {
  html.fx .aurea-reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
  /* is-visible MUSI bić specyficznością regułę ukrywającą wyżej (html.fx = +1 typ, +1 klasa). */
  html.fx .aurea-reveal.is-visible { opacity: 1; transform: none; }
  .aurea-reveal.d1 { transition-delay: .08s; }
  .aurea-reveal.d2 { transition-delay: .16s; }
  .aurea-reveal.d3 { transition-delay: .24s; }
  .aurea-reveal.d4 { transition-delay: .32s; }
  .aurea-reveal.d5 { transition-delay: .4s; }
}

/* ── Placeholder fotografii; realne .webp wypełniają ten sam kadr ── */
.ph {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 16% 8%, rgba(253, 251, 244, .18), transparent 50%),
    radial-gradient(85% 70% at 88% 92%, rgba(168, 132, 44, .3), transparent 62%),
    linear-gradient(155deg, #14493B 6%, #0F1E19 94%);
}
.ph::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 30, 25, .55)); }
.ph-label {
  position: absolute; left: 1.15rem; bottom: 1rem; z-index: 1;
  font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream);
}
.ph img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
figure.ph { margin: 0; }

/* ── Monogram (zespół — zero twarzy) ── */
.mono {
  position: relative;
  width: 86px; height: 86px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: .06em;
  color: var(--btn-text);
  flex: none;
}
.mono::after {
  content: "";
  position: absolute; inset: 7px;
  border: 1px dashed var(--arc);
  border-radius: 50%;
  animation: obrot 80s linear infinite;
}

/* ── Nagłówek strony (template part header) ──
   Sticky na samym elemencie <header> template-part (sticky w wrapperze byłoby
   ograniczone do jego wysokości); selektor grupowany na wypadek braku className. */
.site-header,
header.wp-block-template-part {
  display: block;
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease;
}
.admin-bar .site-header,
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.header-inner {
  max-width: var(--wide-size); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem var(--gutter);
}
.brand-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand-logo .diament { width: 8px; height: 8px; }
.brand-name { display: flex; align-items: center; gap: .7rem; }
.brand-name::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.brand-name a, .brand-logo strong {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.4rem; letter-spacing: .01em;
  color: var(--text); text-decoration: none;
}
.brand-sub, .brand-logo span.brand-tag {
  font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--text-muted); padding-top: .3em;
}
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 1.8rem); list-style: none; }
.nav a,
.site-header .wp-block-navigation .wp-block-navigation-item__content {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--text);
  padding: .35rem 0; border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav a:hover,
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--gold-text); border-bottom-color: var(--gold); }
.nav a[aria-current="page"],
.site-header .wp-block-navigation a[aria-current="page"],
header.wp-block-template-part .wp-block-navigation a[aria-current="page"] { color: var(--gold-text); border-bottom-color: var(--gold); }
.site-header .wp-block-navigation .wp-block-navigation__container,
header.wp-block-template-part .wp-block-navigation .wp-block-navigation__container { display: flex; gap: clamp(1rem, 2.2vw, 1.8rem); list-style: none; }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.wp-block-buttons.header-actions { gap: .7rem; }
.nav-toggle { display: none; }

/* Menu mobilne core/navigation: hamburger do 1080px (makieta), overlay na powierzchni. */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--surface);
  color: var(--text);
  padding: 5.5rem var(--gutter) 2rem;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex; flex-direction: column; gap: 0; width: 100%;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block; width: 100%;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content { border-bottom-color: transparent; }
/* Kremowy hairline na ciemnej powierzchni overlaya — konsument --divider-cream. */
[data-theme="dark"] .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { border-bottom-color: var(--divider-cream); }
[data-theme="dark"] .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content { border-bottom-color: transparent; }
@media (prefers-color-scheme: dark) {
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { border-bottom-color: var(--divider-cream); }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content { border-bottom-color: transparent; }
}
.site-header .wp-block-navigation__responsive-container-close { position: absolute; top: 1rem; right: var(--gutter); }
@media (min-width: 600px) and (max-width: 1080px) {
  .site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}
@media (max-width: 1080px) {
  /* Specyficzność > core .wp-block-buttons>.wp-block-button (inaczej CTA nie znika). */
  .header-cta,
  .wp-block-buttons > .wp-block-button.header-cta { display: none; }
}

/* ══ Język edytorski: sekcje numerowane wielkimi italic-numerami ══ */
.ed-section { padding-block: clamp(4.25rem, 10vw, 7.5rem) 0; }
.ed-section:last-of-type { padding-bottom: clamp(4.25rem, 10vw, 7.5rem); }
.ed-head {
  display: flex;
  align-items: flex-end;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.75rem;
  margin-bottom: clamp(2.4rem, 5vw, 3.25rem);
}
.ed-num,
.ed-head::before {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: .8;
  color: var(--arc);
  flex: none;
}
/* Numeracja sekcji w markupie blokowym: licznik CSS zamiast dekoracyjnych spanów. */
.ed-head::before {
  counter-increment: edsec;
  content: counter(edsec, decimal-leading-zero);
  content: counter(edsec, decimal-leading-zero) / "";
}
.ed-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.ed-head .eyebrow { margin-bottom: .55rem; }

/* ── Nagłówek podstrony (ta sama asymetria i światło co hero) ── */
.page-head {
  position: relative;
  overflow: clip;
  padding-block: clamp(3rem, 7vw, 5.25rem) clamp(2.4rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 1.4rem; max-width: 22ch; }
.page-head .lead { margin-bottom: 0; }
.page-head .actions { margin-top: 2.1rem; }
.page-head .arcs { top: -190px; }

/* ── Opinie: wcięcia edytorskie ── */
.q-ed { display: grid; gap: clamp(2.4rem, 5vw, 3.25rem); }
.q-ed blockquote { font-size: clamp(1.2rem, 2.4vw, 1.6rem); max-width: 46ch; }
.q-ed blockquote:nth-child(2) { margin-left: clamp(0rem, 10vw, 9rem); }
.q-ed blockquote:nth-child(3) { margin-left: clamp(0rem, 20vw, 18rem); }

/* ── Kafel wizyty (CTA) ── */
.visit { padding: clamp(2.25rem, 6vw, 4.25rem) clamp(1.5rem, 5.5vw, 3.75rem) clamp(1.75rem, 4vw, 2.5rem); }
.visit h2, .visit h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1.4rem; }
.tel-big,
.tel-big-wrap a {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 2.9rem);
  color: var(--btn-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--gold);
  transition: color .25s ease, text-decoration-thickness .25s ease;
  margin-bottom: 1.75rem;
}
.tel-big:hover,
.tel-big-wrap a:hover { color: var(--gold-text); text-decoration-thickness: 2px; }
.visit .meta { padding-top: 1.4rem; border-top: 1px solid var(--line); margin-bottom: 2.1rem; }
.visit .actions { margin-bottom: .4rem; }

/* ── Stopka (template part footer) ── */
.site-footer, footer.wp-block-template-part { border-top: 1px solid var(--line); background: var(--surface); transition: background-color .4s ease; }
.wp-site-blocks > footer { margin-block-start: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.25rem);
  padding-block: clamp(2.4rem, 6vw, 3.25rem);
}
.footer-grid .brand-logo, .footer-grid .brand-name { margin-bottom: 1.1rem; }
.footer-tagline { color: var(--text-muted); font-size: .95rem; max-width: 36ch; text-wrap: pretty; }
.f-list { list-style: none; display: grid; gap: .55rem; font-size: .95rem; }
.f-list a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: transparent;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.f-list a:hover { color: var(--gold-text); text-decoration-color: var(--gold); }
.f-list .muted { color: var(--text-muted); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .9rem;
  font-size: .82rem; color: var(--text-muted);
}
.footer-bottom a {
  color: var(--link); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .28em; text-decoration-color: var(--gold);
  transition: text-decoration-thickness .25s ease, color .25s ease;
}
.footer-bottom a:hover { text-decoration-thickness: 2px; color: var(--gold-text); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Hero: tekst lewo / obraz pełny bleed prawo (Edytorial) ── */
.hero { overflow: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wide-size)) / 2));
}
.hero-copy { padding-block: clamp(3rem, 7vw, 5.25rem) clamp(2.5rem, 6vw, 4.25rem); }
.hero-copy h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-bottom: 1.4rem; }
.hero-copy .actions { margin-bottom: 2.4rem; }
.hero-media { position: relative; overflow: clip; }
.ph--hero { min-height: clamp(420px, 64vh, 660px); height: 100%; }
@media (max-width: 980px) {
  .hero-grid { display: block; padding-inline: var(--gutter); }
  .hero-media { margin-inline: calc(var(--gutter) * -1); margin-top: 1.4rem; }
  .ph--hero { min-height: 340px; }
}

/* ── Pas zaufania ── */
.trust {
  background: var(--surface);
  border-block: 1px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-block: clamp(1.75rem, 4vw, 2.4rem);
}
.trust-item { display: flex; gap: .9rem; align-items: flex-start; }
.trust-item .diament { margin-top: .5em; }
.trust-item::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  margin-top: .5em;
}
.trust-name { font-weight: 600; font-size: .95rem; letter-spacing: .02em; margin-bottom: .25rem; }
.trust-sub { color: var(--text-muted); font-size: .88rem; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── Zabiegi: lista edytorska (skrót na stronie głównej) ── */
.svc-list { list-style: none; counter-reset: svc; }
.svc-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: baseline;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  transition: transform .3s ease;
}
.svc-row:hover { transform: translateX(8px); }
.svc-i,
.svc-row::before { font-size: .74rem; font-weight: 600; letter-spacing: .26em; color: var(--gold-text); }
.svc-row::before {
  counter-increment: svc;
  content: counter(svc, decimal-leading-zero);
  content: counter(svc, decimal-leading-zero) / "";
  font-family: "Jost", sans-serif;
}
.svc-row h3 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); margin-bottom: .3rem; transition: color .25s ease; }
.svc-row:hover h3 { color: var(--gold-text); }
.svc-row p { color: var(--text-muted); font-size: .95rem; max-width: 58ch; text-wrap: pretty; }
.svc-row p.price { color: var(--gold-text); }
.svc-note { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem; }
.svc-note p { color: var(--text-muted); font-size: .9rem; max-width: 52ch; }
@media (max-width: 700px) {
  .svc-row { grid-template-columns: 1fr; gap: .3rem; padding-block: 1.2rem; }
  .svc-row:hover { transform: none; }
  .svc-row::before { display: none; }
}

/* ── Zabiegi (podstrona): opis lewo / fotografia prawo (naprzemiennie) ── */
.svc-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas: "body media";
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: start;
}
.svc-sec--alt .svc-cols {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "media body";
}
.svc-body { grid-area: body; }
.svc-media { grid-area: media; }
.svc-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-wrap: pretty;
  max-width: 52ch;
  margin-bottom: 1.4rem;
}
.svc-fact { display: flex; gap: .9rem; align-items: flex-start; color: var(--text-muted); font-size: .95rem; max-width: 52ch; text-wrap: pretty; margin-bottom: 1.4rem; }
.svc-fact .diament { margin-top: .5em; }
.svc-fact::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  margin-top: .5em;
}
.svc-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.svc-price-row .price { font-size: 1.35rem; }
.svc-price-row p { margin: 0; }
.ph--svc { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .svc-cols, .svc-sec--alt .svc-cols {
    grid-template-columns: 1fr;
    grid-template-areas: "body" "media";
  }
}

/* ── Cennik: edytorskie wiersze z hairline i ceną w italiku ──
   (oryginalne selektory tabeli z makiety + odpowiedniki dla markupu blokowego .pt-row) */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th[scope="row"] { text-align: left; font-weight: 400; }
.price-table tbody tr { border-bottom: 1px solid var(--line); }
.price-table tbody tr:last-child { border-bottom: none; }
.price-table th, .price-table td { padding: 1.2rem 0; vertical-align: baseline; }
.price-table td { text-align: right; padding-left: 1.4rem; }
.pt-name { display: block; font-weight: 500; font-size: 1.05rem; transition: color .25s ease; }
.price-table tbody tr:hover .pt-name { color: var(--gold-text); }
.pt-sub { display: block; color: var(--text-muted); font-size: .9rem; max-width: 58ch; text-wrap: pretty; margin-top: .3rem; }
.cat-note { margin-top: 1.4rem; color: var(--text-muted); font-size: .9rem; max-width: 52ch; text-wrap: pretty; }
.pt-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.pt-rows > .pt-row:last-child { border-bottom: none; }
.pt-row:hover .pt-name { color: var(--gold-text); }
.pt-row .price { text-align: right; }
@media (max-width: 620px) {
  .price-table th, .price-table td { display: block; padding: 0; text-align: left; }
  .price-table th[scope="row"] { padding-top: 1.2rem; }
  .price-table td { padding: .35rem 0 1.2rem; }
  .pt-row { display: block; padding: 1.2rem 0; }
  .pt-row .price { display: block; text-align: left; margin-top: .35rem; }
}

/* ── Zespół: lekarz jako sekcja edytorska (monogram + bio, zero twarzy) ── */
.mono--lg { width: 110px; height: 110px; font-size: 2rem; }
.doc-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: start;
}
.doc-grid .bio {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 46ch;
  margin-bottom: 1.4rem;
}
.doc-links { color: var(--text-muted); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; }
.doc-links a + a::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-right: .9rem;
  vertical-align: .08em;
}
.doc-sec--i1 .doc-grid { margin-left: clamp(0rem, 6vw, 5.5rem); }
.doc-sec--i2 .doc-grid { margin-left: clamp(0rem, 12vw, 11rem); }
@media (max-width: 700px) {
  .doc-grid, .doc-sec--i1 .doc-grid, .doc-sec--i2 .doc-grid { grid-template-columns: 1fr; margin-left: 0; }
}

/* ── Opinie (podstrona): większy stopień pisma ── */
.q-ed--lg blockquote { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }

/* ── FAQ: natywny akordeon details/summary (core/details) ── */
.faq { border-top: 1px solid var(--line); counter-reset: faqn; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: baseline;
  padding-block: 1.4rem;
  transition: transform .3s ease;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { transform: translateX(8px); }
.faq-i,
.faq summary::before { font-size: .74rem; font-weight: 600; letter-spacing: .26em; color: var(--gold-text); }
.faq summary::before {
  counter-increment: faqn;
  content: counter(faqn, decimal-leading-zero);
  content: counter(faqn, decimal-leading-zero) / "";
  font-family: "Jost", sans-serif;
}
.faq-q {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
  transition: color .25s ease;
}
.faq summary:hover .faq-q { color: var(--gold-text); }
.faq summary { transition: transform .3s ease, color .25s ease; }
.faq summary:hover { color: var(--gold-text); }
.faq-mark { position: relative; width: 14px; height: 14px; align-self: center; transition: transform .3s ease; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; background: var(--gold); }
.faq-mark::before { left: 0; right: 0; top: 6px; height: 1.5px; }
.faq-mark::after { top: 0; bottom: 0; left: 6px; width: 1.5px; }
.faq details[open] .faq-mark { transform: rotate(45deg); }
.faq summary::after {
  content: "";
  width: 14px; height: 14px;
  align-self: center;
  justify-self: end;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  text-wrap: pretty;
  max-width: 58ch;
  padding: 0 0 1.75rem calc(3.4rem + clamp(1rem, 2.4vw, 1.75rem));
}
.faq details[open] .faq-a { animation: pojaw .5s ease both; }
@media (max-width: 700px) {
  .faq summary { grid-template-columns: minmax(0, 1fr) auto; }
  .faq summary:hover { transform: none; }
  .faq-i, .faq summary::before { display: none; }
  .faq-a { padding-left: 0; }
}

/* ── Kontakt: rejestracja z dużym tel-CTA ── */
.call-tile { padding: clamp(2.25rem, 6vw, 4.25rem) clamp(1.5rem, 5.5vw, 3.75rem) clamp(2rem, 5vw, 3.25rem); }
.tel-hero,
.tel-hero-wrap a {
  display: inline-block;
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 4.4rem);
  line-height: 1.1;
  color: var(--btn-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  text-decoration-color: var(--gold);
  transition: color .25s ease, text-decoration-thickness .25s ease;
  margin-block: .6rem 1.75rem;
}
.tel-hero:hover,
.tel-hero-wrap a:hover { color: var(--gold-text); text-decoration-thickness: 2px; }
.call-note { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; text-wrap: pretty; max-width: 52ch; }
.call-note + .call-note { margin-top: .6rem; }
.email-text,
.call-note strong { font-weight: 500; color: var(--text); white-space: nowrap; }

/* ── Kontakt: dojazd — tekst lewo / fotografia prawo ── */
.dojazd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.25rem);
  align-items: start;
}
.addr-line {
  font-family: "Fraunces", serif;
  font-weight: 500;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  letter-spacing: -.01em;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
.dojazd-facts { list-style: none; display: grid; gap: 1.1rem; }
.dojazd-facts li { display: flex; gap: .9rem; align-items: flex-start; color: var(--text-muted); font-size: .98rem; max-width: 52ch; text-wrap: pretty; }
.dojazd-facts .diament { margin-top: .5em; }
.dojazd-facts li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
  margin-top: .5em;
}
.ph--dojazd { aspect-ratio: 4 / 3; }
@media (max-width: 900px) { .dojazd-grid { grid-template-columns: 1fr; } }

/* ── Kontakt: godziny przyjęć ── */
.hours-list { list-style: none; max-width: 620px; }
.hours-list li,
.hours-list .hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line);
}
.hours-list li:last-child,
.hours-list .hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 500; font-size: .98rem; }
.hours-row p { margin: 0; }
.hours-note { margin-top: 1.75rem; }

/* ── Blog / index (fallback) ── */
.blog-list .wp-block-post-title { font-size: clamp(1.2rem, 2.3vw, 1.55rem); margin-bottom: .3rem; }
.blog-list .wp-block-post-title a { color: var(--text); text-decoration: none; transition: color .25s ease; }
.blog-list .wp-block-post-title a:hover { color: var(--gold-text); }
.blog-list .wp-block-post-date { display: block; color: var(--text-muted); font-size: .82rem; letter-spacing: .04em; margin-bottom: 1.4rem; }

/* ── Adaptacje WordPress: neutralizacja domyślnych stylów bloków ── */
.wp-block-image { margin: 0; }
.wp-block-image img { max-width: 100%; }
.wp-block-details summary { list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-buttons { display: flex; flex-wrap: wrap; }
p.price { margin: 0; }

/* ── Widoczność w edytorze blokowym: treść animowana nie może znikać ── */
.editor-styles-wrapper .aurea-reveal,
.editor-styles-wrapper .reveal {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .aurea-reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
