:root { --bg:#fbf6ef; --surface:#fffdf9; --surface-alt:#f1e8dc; --ink:#3a3028; --muted:#76695f; --text:#584d44; --primary:#6c513e; --primary-deep:#30231c; --accent:#c27c4c; --radius:28px; }
/* Nagłówek leży na hero (position:absolute), więc nie zajmuje miejsca w przepływie. `top:auto` zostawia go
   w miejscu, w którym stałby w przepływie: gdy coś stoi nad nim (pasek informacji, baner), nagłówek
   przesuwa się razem z hero, zamiast wsuwać się pod ten element (`top:0` liczyłoby od góry dokumentu). */
.theme-story .site-header { position:absolute; top:auto; z-index:60; width:100%; border-color:rgba(255,255,255,.25); background:linear-gradient(rgba(20,15,12,.72),transparent); color:#fff; backdrop-filter:none; }
.theme-story .brand small,.theme-story .main-nav a { color:rgba(255,255,255,.8); }
.theme-story .header-phone { border-color:rgba(255,255,255,.4); }
.theme-story .header-booking { border-color:#fff; background:#fff; color:#251c17; }
.theme-story .header-booking:hover { border-color:#f0dfc3; background:#f0dfc3; }
.theme-story .hero { min-height:840px; padding:0; background:#251c17; }
.theme-story .hero::before { display:none; }
.theme-story .hero-grid { width:min(1500px,100%); min-height:840px; grid-template-columns:1fr; gap:0; }
.theme-story .hero-copy,.theme-story .hero-visual { grid-area:1/1; }
/* `align-self:stretch` (baza centruje): gdy tekst jest wyższy niż 840 px, zdjęcie i tło rosną razem z wierszem
   siatki, zamiast wisieć na środku z ciemnym pasem u góry i u dołu. */
.theme-story .hero-visual { align-self:stretch; width:100%; min-height:840px; }
/* Druga warstwa przyciemnia górę (czytelny pasek nagłówka) i dół (pasek faktów na jasnych partiach zdjęcia). */
.theme-story .hero-visual::after { position:absolute; inset:0; background:linear-gradient(90deg,rgba(28,20,16,.9) 0%,rgba(28,20,16,.66) 50%,rgba(28,20,16,.12) 100%),linear-gradient(180deg,rgba(28,20,16,.55) 0%,transparent 26%,transparent 58%,rgba(28,20,16,.62) 100%); content:''; }
.theme-story .hero-visual > img,.theme-story .visual-placeholder { width:100%; height:100%; min-height:840px; border-radius:0; box-shadow:none; }
/* Bez zdjęcia hero jest ciemnym tłem z gradientu bazowego arkusza, a monogram z nazwą to podpis na prawej
   krawędzi. Tekst otwarcia zajmuje lewe ~780 px (od 8vw), więc podpis mieści się obok niego dopiero od 1280 px;
   poniżej chowamy go całego — nazwa gabinetu stoi w nagłówku, a środek ekranu należy do tekstu otwarcia. */
.theme-story .visual-placeholder { grid-template-columns:minmax(0,280px); place-content:center end; padding:0 clamp(40px,6vw,96px) 0 0; }
.theme-story .visual-placeholder p { overflow-wrap:anywhere; }
.theme-story .visual-placeholder small { opacity:.92; }
@media(max-width:1279px){.theme-story .visual-placeholder>*{display:none}}
/* Tekst jest przyklejony do dołu, więc przy długim tytule rósłby w górę pod nagłówek. `padding-top` rezerwuje
   pas na nagłówek (79 px + oddech); wiersz siatki rośnie razem z tekstem, a zdjęcie lub tło za nim. */
.theme-story .hero-copy { z-index:2; width:min(780px,calc(100% - 80px)); align-self:end; margin:0 0 70px max(40px,8vw); padding-top:120px; color:#fff; }
.theme-story h1 { max-width:760px; font-size:clamp(3.2rem,6.4vw,6rem); font-weight:400; }
.theme-story .hero-description { color:rgba(255,255,255,.78); }
.theme-story .hero-facts { border-top:1px solid rgba(255,255,255,.28); padding-top:18px; }
.theme-story .hero-facts li { border-color:rgba(255,255,255,.25); }
.theme-story .hero-facts span { color:rgba(255,255,255,.78); }
.theme-story .hero-note { display:none; }
.theme-story .about-copy>p:not(.eyebrow) { font-family:Georgia,serif; font-size:1.35rem; line-height:1.75; }
.theme-story .about-grid { grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr); }
.theme-story .about-visual img,.theme-story .calm-shape { border-radius:180px 180px 24px 24px; }
.theme-story .services { background:#fffdf9; }
.theme-story .services-grid { display:grid; grid-template-columns:1fr; gap:0; border-top:1px solid var(--line); }
/* Rytm karty menu: numer | kategoria nad tytułem i opisem | cena z prawej — zamiast czterech luźnych kolumn. */
.theme-story .service-card { display:grid; min-height:0; align-items:baseline; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:36px 0; background:transparent; grid-template-columns:64px minmax(0,1fr) minmax(110px,auto); gap:6px 28px; }
.theme-story .service-card:hover { transform:none; box-shadow:none; }
.theme-story .service-index { position:static; grid-column:1; grid-row:1; align-self:start; color:var(--accent); font-size:1rem; }
.theme-story .service-category { grid-column:2; grid-row:1; margin:0; }
.theme-story .service-card h3 { grid-column:2; grid-row:2; margin:0; font-size:clamp(1.5rem,2.2vw,2.1rem); font-weight:400; }
.theme-story .service-card>p:not(.service-category) { grid-column:2; grid-row:3; max-width:62ch; margin:0; }
.theme-story .service-card .service-details { grid-column:2; grid-row:4; max-width:62ch; margin-top:8px; border-top:0; padding-top:0; }
.theme-story .service-meta { grid-column:3; grid-row:1/span 4; align-self:center; justify-self:end; display:grid; justify-items:end; min-width:110px; margin:0; gap:4px; }
/* Portret dostaje stały kadr (łuk jak w sekcji „O gabinecie"), a tekst redakcyjną skalę — bez tego zdjęcie rosło do naturalnej wysokości i zostawiało martwe pole. */
.theme-story .team-card { border:0; background:transparent; align-items:center; grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr); gap:clamp(24px,4vw,56px); }
.theme-story .team-card .portrait { aspect-ratio:4/5; min-height:0; overflow:hidden; border-radius:180px 180px 24px 24px; }
.theme-story .team-copy { padding:0; }
.theme-story .team-copy h3 { font-size:clamp(1.8rem,2.6vw,2.6rem); font-weight:400; }
.theme-story .team-copy>p:not(.eyebrow) { font-family:Georgia,serif; font-size:1.22rem; line-height:1.7; max-width:52ch; }
.theme-story .site-gallery { padding-block:0; background:#251c17; color:#fff; }
.theme-story .site-gallery .container { width:100%; }
.theme-story .gallery-heading { width:min(1160px,calc(100% - 40px)); margin:0 auto; padding:90px 0 42px; }
.theme-story .gallery-heading>p:last-child { color:rgba(255,255,255,.62); }
.theme-story .gallery-grid { gap:0; }
.theme-story .gallery-card,.theme-story .gallery-card:nth-child(5n+1),.theme-story .gallery-card:nth-child(5n+2) { min-height:560px; grid-column:span 6; }
.theme-story .gallery-card:nth-child(3n+1) { grid-column:1/-1; min-height:680px; }
.theme-story .gallery-card figcaption { right:max(28px,7vw); bottom:48px; left:max(28px,7vw); }
/* Poza stroną główną nie ma pełnoekranowego kadru, więc nagłówek nie może już na nim leżeć —
   przyklejony pasek dostaje własne ciemne tło, inaczej biały tekst trafiłby na jasną stronę. */
.theme-story.page-blog .site-header,.theme-story.page-article .site-header { position:sticky; top:0; background:#251c17; }
.theme-story .blog-chapters-layout { background:#fffdf9; }
.theme-story .blog-chapter { min-height:480px; border-top:0; }
.theme-story .blog-chapter-copy { align-self:stretch; display:flex; flex-direction:column; justify-content:center; background:#251c17; color:#fff; }
.theme-story .blog-chapter-copy .blog-date { color:rgba(255,255,255,.64); }
.theme-story .blog-chapter-copy .blog-excerpt { max-width:46ch; color:rgba(255,255,255,.8); font-family:Georgia,serif; font-size:1.16rem; }
.theme-story .blog-chapter-copy .blog-more { color:#f0dfc3; }
.theme-story .blog-chapter-visual img { min-height:480px; border-radius:0; }
/* Rozdział bez zdjęcia jest pełnym ciemnym pasem — tło niesie sam rozdział,
   a tekst zostaje w tej samej kolumnie co nagłówek listy. */
.theme-story .blog-chapter-wide { min-height:0; background:#251c17; }
.theme-story .blog-chapter-wide .blog-chapter-copy { padding-block:clamp(52px,6vw,88px); background:transparent; }
.theme-story .article-body p { font-family:Georgia,serif; font-size:1.2rem; line-height:1.78; }
.theme-story .article-figure img { border-radius:160px 160px 24px 24px; }
/* Lista-menu: nagłówek grupy jest kolejnym „rozdziałem” karty dań, a nie kafelkiem. */
.theme-story .services-group + .services-group { margin-top:clamp(28px,4vw,48px); }
.theme-story .services-group-title { margin-bottom:0; padding:22px 0 14px; font-family:Georgia,serif; font-size:clamp(1.3rem,2vw,1.7rem); font-weight:400; }
.theme-story .services-group-title::after { display:none; }
.theme-story .services-group .services-grid { border-top:1px solid var(--line); }
.theme-story .price-list { background:#fffdf9; }
.theme-story .price-group-title { font-family:Georgia,serif; font-size:1.35rem; font-weight:400; color:var(--ink); }
.theme-story .price-name { font-family:Georgia,serif; font-size:1.1rem; font-weight:400; }
.theme-story .credentials { background:var(--surface-alt); }
.theme-story .credential { border:0; background:#fffdf9; border-radius:24px; }
.theme-story .credential-scan { border-radius:90px 90px 12px 12px; }
.theme-story .video-frame { border-radius:0; box-shadow:none; }
.theme-story .videos { background:#251c17; color:#fff; }
.theme-story .videos .section-heading>p:last-child,.theme-story .video-copy p { color:rgba(255,255,255,.72); }
.theme-story .video-link { color:#f0dfc3; }
/* Rozwijane menu na ciemnym nagłówku: białe odnośniki zostają, więc tło też musi być ciemne. */
@media(max-width:1020px){.theme-story .main-nav{border-bottom-color:rgba(255,255,255,.18);background:#251c17;box-shadow:0 18px 35px rgba(0,0,0,.35)}}
@media(max-width:980px){.theme-story .blog-chapter,.theme-story .blog-chapter-visual img{min-height:0}.theme-story .blog-chapter-visual img{height:300px}}
@media(max-width:760px){.theme-story .site-header{position:absolute}.theme-story .hero,.theme-story .hero-grid,.theme-story .hero-visual{min-height:790px}.theme-story .hero-visual>img,.theme-story .visual-placeholder{height:100%;min-height:790px}.theme-story .hero-copy{width:calc(100% - 40px);margin:0 20px 40px;padding-top:150px}.theme-story .hero-facts{grid-template-columns:1fr}.theme-story .about-grid,.theme-story .team-card{grid-template-columns:1fr}.theme-story .service-card{grid-template-columns:44px minmax(0,1fr);column-gap:14px}.theme-story .service-card .service-index{grid-column:1;grid-row:1}.theme-story .service-card .service-category{grid-column:2;grid-row:1}.theme-story .service-card h3{grid-column:2;grid-row:2}.theme-story .service-card>p:not(.service-category){grid-column:2;grid-row:3}.theme-story .service-card .service-details{grid-column:2;grid-row:4}.theme-story .service-card .service-meta{grid-column:2;grid-row:5}.theme-story .service-card .service-meta{justify-self:start;justify-items:start}.theme-story .gallery-card,.theme-story .gallery-card:nth-child(3n+1){min-height:430px;grid-column:1/-1}}
/* Na bardzo wąskim ekranie nagłówek zawija się (nazwa w dwóch wierszach, telefon, przycisk rezerwacji) i sięga ok. 185 px. */
@media(max-width:380px){.theme-story .hero-copy{padding-top:210px}}
