/* ==========================================================================
   STYLE.CSS — układ i wygląd elementów.
   UWAGA: kolorów i czcionek tu nie zmieniaj — robisz to w theme.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Wysokość przyklejonego nagłówka: dopasowuje się do wysokości logo (theme.css), min. 72px */
:root { --header-h: max(72px, calc(var(--logo-height) + 24px)); }
@media (max-width: 820px) { :root { --header-h: 72px; } }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h); /* miejsce na przyklejony nagłówek */
    /* Domyślnie (telefony, niskie ekrany): łagodne "dociąganie" do sekcji,
       długie sekcje można normalnie przewijać. Aby wyłączyć: zmień "proximity" na "none". */
    scroll-snap-type: y proximity;
}
.hero, .section { scroll-snap-align: start; }
.site-footer { scroll-snap-align: end; }

/* Komputery i laptopy: każda sekcja zajmuje cały ekran, a jeden ruch kółkiem
   przenosi na następną sekcję (sztywny snap).
   Aby wrócić do łagodnego przewijania: zmień "mandatory" na "proximity". */
@media (min-width: 821px) and (min-height: 640px) {
    html { scroll-snap-type: y mandatory; }
    .hero, .section {
        min-height: calc(100vh - var(--header-h));
        min-height: calc(100svh - var(--header-h));
        display: flex; flex-direction: column; justify-content: center;
        scroll-snap-stop: always; /* jeden ruch = jedna sekcja, bez przeskakiwania kilku naraz */
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.15;
    color: var(--color-primary);
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.5rem; margin-top: 1.6em; }

p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* Widoczny fokus dla nawigacji klawiaturą */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--color-primary); color: var(--color-on-primary);
    padding: 0.6rem 1rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* Gdy działa płynne przewijanie z JavaScriptu (main.js), natywny snap jest wyłączony,
   żeby przeglądarka nie "walczyła" z animacją. */
html.js-fullpage { scroll-snap-type: none; scroll-behavior: auto; }

[hidden] { display: none !important; }

/* ---------- Baner cookies i zgoda na usługi zewnętrzne ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 0.75rem; }
.cookie-inner {
    max-width: 980px; margin-inline: auto; padding: 1.1rem 1.3rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.cookie-copy { flex: 1 1 380px; font-size: 0.9rem; line-height: 1.55; }
.cookie-copy p { margin: 0; }
.cookie-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.3rem !important; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { min-height: 46px; }

.cookie-copy .cookie-small { margin-top: 0.35rem; font-size: 0.82rem; color: var(--color-text-muted); }
.cookie-icon {
    display: none; flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
    align-items: center; justify-content: center;
    background: var(--color-secondary); color: var(--color-primary);
}
.cookie-icon svg { width: 30px; height: 30px; }

/* Wariant „okienko”: wyskakuje na środku, lekko rozmywa i przyciemnia stronę */
.cookie-banner--popup {
    top: 0; display: flex; align-items: center; justify-content: center;
    padding: 1rem; background: var(--cookie-backdrop);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.cookie-banner--popup .cookie-inner {
    max-width: 480px; width: 100%; padding: 2rem 2rem 1.7rem;
    flex-direction: column; align-items: center; text-align: center; gap: 1.1rem;
    border-radius: calc(var(--radius) + 6px);
    max-height: calc(100vh - 2rem); overflow-y: auto;
    animation: cookie-pop 0.3s ease-out;
}
.cookie-banner--popup .cookie-icon { display: flex; }
.cookie-banner--popup .cookie-copy { flex: 0 0 auto; font-size: 1.02rem; line-height: 1.65; }
.cookie-banner--popup .cookie-title { font-size: 2rem; line-height: 1.1; margin-bottom: 0.7rem !important; }
.cookie-banner--popup .cookie-copy .cookie-small { margin-top: 0.9rem; font-size: 0.86rem; line-height: 1.55; }
.cookie-banner--popup .cookie-actions { justify-content: center; gap: 0.7rem; margin-top: 0.3rem; }
.cookie-banner--popup .cookie-actions .btn { flex: 0 0 auto; min-height: 44px; padding: 0.55rem 1.6rem; font-size: 0.95rem; }
@media (max-width: 440px) {
    .cookie-banner--popup .cookie-inner { padding: 1.6rem 1.3rem 1.4rem; }
    .cookie-banner--popup .cookie-title { font-size: 1.7rem; }
    .cookie-banner--popup .cookie-actions { width: 100%; }
    .cookie-banner--popup .cookie-actions .btn { flex: 1 1 100%; }
}
@keyframes cookie-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.consent-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.8rem; text-align: center; padding: 1.5rem;
    background: var(--color-secondary-soft); border: 1px dashed var(--color-border);
    border-radius: var(--radius); color: var(--color-text-muted);
}
.consent-placeholder p { margin: 0; max-width: 46ch; }
.location-map .consent-placeholder { min-height: 360px; height: 100%; }
.location-map iframe[data-consent-src]:not([src]) { display: none; }
.pano-consent { position: absolute; inset: 0; z-index: 2; background: var(--color-surface); border-style: solid; }

.link-button {
    padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
    color: var(--color-primary); text-decoration: underline;
}
.link-button:hover { color: var(--color-primary-hover); }

/* ---------- Podstrona z długim tekstem (polityka prywatności) ---------- */
html.page-legal { scroll-snap-type: none !important; }
.legal { width: min(780px, 100% - 2.5rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 2em; }
.legal-meta { color: var(--color-text-muted); }
.legal ul { padding-left: 1.2rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border: 1px solid var(--color-border); }
.legal th { background: var(--color-secondary-soft); }
.legal .todo { background: var(--color-secondary); color: var(--color-on-secondary); padding: 0 0.35em; border-radius: 4px; }
@media (max-width: 640px) { .legal table { display: block; overflow-x: auto; } }

/* ---------- Blog ---------- */
.container--narrow { width: min(760px, 100% - 2.5rem); }
.preview-bar { background: var(--color-primary); color: var(--color-on-primary); text-align: center; padding: 0.6rem 1rem; font-size: 0.9rem; }
.preview-bar a { color: inherit; text-decoration: underline; }
.blog-wrap { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.blog-head { max-width: 640px; margin-bottom: 2.5rem; }
.blog-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
.blog-intro, .blog-lead { color: var(--color-text-muted); font-size: 1.1rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card-body h2 { font-size: 1.35rem; margin: 0; }
.blog-card-body h2 a { color: inherit; text-decoration: none; }
.blog-card-body p { margin: 0; color: var(--color-text-muted); }
.blog-meta { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 0.5rem; }
.blog-card-body .blog-meta { margin: 0; }
.blog-more { margin-top: auto; color: var(--color-primary); font-weight: 600; text-decoration: none; }
.badge { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--color-secondary); color: var(--color-on-secondary); font-size: 0.75rem; font-weight: 600; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.pagination a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.blog-empty { color: var(--color-text-muted); }
.blog-article h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0.3rem 0 1rem; }
.blog-cover { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.article-body { font-size: 1.05rem; line-height: 1.75; }
.article-body h2 { font-size: 1.6rem; margin-top: 2em; }
.article-body h3 { font-size: 1.25rem; margin-top: 1.6em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1rem 0; }
.article-body blockquote { margin: 1.2rem 0; padding: 0.4rem 1.2rem; border-left: 4px solid var(--color-primary); background: var(--color-secondary-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.article-body th, .article-body td { text-align: left; padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); }
.article-body a { color: var(--color-primary); }
.blog-back { margin-top: 2.5rem; }
.blog-back a { color: var(--color-primary); }
.article-cta { margin-top: 2.5rem; padding: 1.6rem; text-align: center; background: var(--color-secondary-soft); border-radius: var(--radius); }
.article-cta h2 { margin-top: 0; font-size: 1.5rem; }

/* ---------- Sekcja dla osób onkologicznych ---------- */
.care { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.care:not(.care--photo) { max-width: 760px; }
.care--photo { grid-template-columns: 1.2fr minmax(240px, 420px); }
.care-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 820px) { .care--photo { grid-template-columns: 1fr; } .care-photo { max-width: 420px; } }

/* ---------- Pytania, przycisk mobilny, wróć na górę ---------- */
.faq { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.faq-item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.3rem; font-weight: 600; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-primary); transition: transform 0.25s var(--anim-ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--color-primary); }
.faq-answer { padding: 0 1.3rem 1.1rem; color: var(--color-text-muted); }
.faq-answer p { margin: 0.4rem 0 0; }
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--color-primary); z-index: 300; }
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-primary); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, color 0.2s, transform 0.25s var(--anim-ease); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--color-primary); color: var(--color-on-primary); transform: translateY(-2px); }
.btn.sticky-cta { display: none; }
@media (max-width: 820px) {
    .btn.sticky-cta { display: inline-flex; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; justify-content: center; box-shadow: 0 8px 24px rgba(43, 34, 48, 0.25); transition: transform 0.3s var(--anim-ease), opacity 0.3s; }
    .btn.sticky-cta.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
    .to-top { bottom: 5rem; }
    body { padding-bottom: 4.5rem; }
}

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0.7rem 1.6rem;
    font: 600 0.95rem var(--font-body);
    text-decoration: none; cursor: pointer;
    border: 2px solid transparent; border-radius: 999px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-secondary { background: var(--color-secondary); color: var(--color-on-secondary); }
.btn-secondary:hover { background: var(--color-secondary-hover); color: var(--color-on-secondary); }
.btn-small { min-height: 42px; padding: 0.4rem 1.2rem; font-size: 0.9rem; }
.btn-large { min-height: 56px; padding: 0.9rem 2.4rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- Nagłówek ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); gap: 1rem;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name {
    font-family: var(--font-heading); font-size: 1.9rem; font-weight: 600;
    color: var(--color-primary); letter-spacing: 0.04em;
}
.brand-tagline {
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-text-muted);
}

.brand--logo { justify-content: center; }
.brand-logo {
    height: var(--logo-height); width: auto; max-width: min(260px, 55vw);
    object-fit: contain;
}
@media (max-width: 820px) { .brand-logo { height: min(var(--logo-height), 52px); } }

.site-nav ul { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
    color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a:not(.btn).active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.nav-toggle {
    display: none; width: 48px; height: 48px; padding: 0;
    background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius);
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle-bar { width: 22px; height: 2px; background: var(--color-primary); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--color-surface); border-bottom: 1px solid var(--color-border);
        display: none; padding: 1rem 1.25rem 1.5rem;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.4rem; }
    .site-nav a:not(.btn) { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--color-border); }
    .site-nav .btn { width: 100%; margin-top: 0.6rem; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
/* Salon: treść wyżej (mniejszy górny odstęp), żeby zdjęcia na dole nie były ucinane przy przewijaniu sekcja po sekcji */
#salon { padding-top: clamp(1.25rem, 2.5vw, 2rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
#salon .pano { margin: 1.25rem 0; }
.section-alt { background: var(--color-secondary-soft); }
.section-ruled { border-top: 1px solid var(--color-border); }
.section-intro { color: var(--color-text-muted); max-width: 60ch; }
.eyebrow {
    text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 600;
    color: var(--color-text-muted); margin-bottom: 0.8rem;
}
.lead { font-size: 1.1rem; color: var(--color-text-muted); max-width: 52ch; }
.prose { max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }

.notice {
    display: inline-block; padding: 0.9rem 1.2rem; margin: 0;
    background: var(--color-surface); border: 1px dashed var(--color-border);
    border-radius: var(--radius); color: var(--color-text-muted);
}

/* ---------- Hero ---------- */
.hero { background: var(--color-secondary-soft); padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero-media img, .photo-placeholder {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.photo-placeholder {
    display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem;
    background: var(--color-secondary); color: var(--color-on-secondary);
    border: 2px dashed var(--color-primary);
}
.photo-placeholder small { opacity: 0.8; }

@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
}

/* ---------- O mnie ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about:has(.about-photo) { grid-template-columns: minmax(240px, 380px) 1fr; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-name { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 600; margin: 0; }
.about-role {
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600;
    color: var(--color-text-muted); margin-bottom: 1.4rem;
}
@media (max-width: 820px) {
    .about:has(.about-photo) { grid-template-columns: 1fr; }
    .about-photo { max-width: 380px; }
}

/* ---------- Rezerwacja ---------- */
.booking { background: var(--color-secondary); text-align: center; }
.booking h2 { color: var(--color-on-secondary); }
.booking .lead { margin-inline: auto; color: var(--color-on-secondary); }
.booking .btn { margin-top: 1rem; }

/* Wersja ze zdjęciem w tle (rozmytym) */
.booking--photo { position: relative; overflow: hidden; isolation: isolate; }
.booking-bg { position: absolute; inset: 0; z-index: -1; }
.booking-bg img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(var(--booking-blur));
    transform: scale(1.12); /* ukrywa jasne krawędzie powstające przy rozmyciu */
}
.booking-bg::after { content: ""; position: absolute; inset: 0; background: var(--booking-overlay); }
.booking--photo .booking-inner {
    max-width: 760px; padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--booking-card);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid var(--color-border); border-radius: var(--radius);
}

/* ---------- Panorama 360° ---------- */
.pano { margin: 2rem 0; }
.pano-stage {
    position: relative; overflow: hidden;
    height: clamp(260px, 42vh, 460px);
    border-radius: var(--radius); box-shadow: var(--shadow);
    background: var(--color-secondary);
}
.pano-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: transparent; }
.pano-start img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.pano-start:hover img { transform: scale(1.03); }
.pano-start-label {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    padding: 0.8rem 1.6rem; border-radius: 999px; white-space: nowrap;
    font: 600 1rem var(--font-body);
    background: var(--color-primary); color: var(--color-on-primary);
}
.pano-start:hover .pano-start-label { background: var(--color-primary-hover); }
.pano-start.is-loading { cursor: progress; }
.pano-viewer { width: 100%; height: 100%; }
.pano-hint { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--color-text-muted); }
/* Tryb „tylko zdjęcie 360°”: panorama jest jedyną treścią sekcji, więc jest większa */
.pano--solo { margin-bottom: 0; }
.pano--solo .pano-stage { height: clamp(320px, 62vh, 660px); }

/* ---------- Galeria ---------- */
.gallery {
    list-style: none; margin: 2rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem;
}
.gallery-button {
    display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    background: var(--color-secondary-soft); border-radius: var(--radius); overflow: hidden;
}
.gallery-button img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; /* różne proporcje zdjęć są równo przycinane */
    transition: transform 0.4s;
}
.gallery-button:hover img { transform: scale(1.04); }
.gallery-caption { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--color-text-muted); }

.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; overflow: visible;
}
.lightbox::backdrop { background: var(--overlay); }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox-caption { color: var(--color-on-primary); text-align: center; margin: 0.8rem 0 0; }
.lightbox-close {
    position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%;
    border: 0; cursor: pointer; font-size: 1.8rem; line-height: 1;
    background: var(--color-surface); color: var(--color-primary);
}

/* ---------- Instagram ---------- */
.social-grid {
    list-style: none; margin: 2rem 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem;
}
.social-item { display: block; border-radius: var(--radius); overflow: hidden; background: var(--color-secondary); }
.social-item img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover; /* każde zdjęcie przycięte do kwadratu */
    transition: transform 0.4s;
}
a.social-item:hover img { transform: scale(1.05); }
.social-embed { margin: 2rem 0; max-width: 100%; overflow-x: auto; }
.social-embed iframe { max-width: 100%; border: 0; }

/* ---------- Lokalizacja ---------- */
.location { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.location-list { list-style: none; margin: 1.2rem 0 1.4rem; padding: 0; display: grid; gap: 0.8rem; }
.location-list li { display: flex; align-items: center; gap: 0.9rem; }
.location-list .footer-icon { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--color-secondary); color: var(--color-primary); transition: background-color 0.25s, color 0.25s, transform 0.3s var(--anim-ease); }
.location-list .footer-icon svg { width: 20px; height: 20px; }
.location-list li:hover .footer-icon { background: var(--color-primary); color: var(--color-on-primary); transform: scale(1.08); }
.location-list address { font-style: normal; font-size: 1.15rem; font-weight: 500; }
.location-list a { color: inherit; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--color-border); transition: color 0.2s, border-color 0.2s; }
.location-list a:hover { color: var(--color-primary); border-color: var(--color-primary); }
.location-note { margin: 0 0 1.4rem; padding: 0.9rem 1.2rem; background: var(--color-secondary-soft); border-left: 4px solid var(--color-primary); border-radius: 0 var(--radius) var(--radius) 0; }
.location-note strong { display: block; margin-bottom: 0.2rem; }
.location-note p { margin: 0.3rem 0 0; color: var(--color-text-muted); }
.location .btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.location-map iframe {
    width: 100%; height: 100%; min-height: 360px; border: 0;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (max-width: 820px) { .location { grid-template-columns: 1fr; } }

/* ---------- Stopka ---------- */
.site-footer { background: var(--color-surface); border-top: 1px solid var(--color-border); padding-top: 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 0.3rem; }
.footer-text { color: var(--color-text-muted); max-width: 40ch; margin: 0; }
.footer-logo { height: var(--footer-logo-height); width: auto; max-width: min(300px, 80vw); object-fit: contain; }
.footer-side { display: grid; gap: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.footer-links li { display: flex; align-items: flex-start; gap: 0.7rem; }
.footer-links a { color: var(--color-text); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); text-decoration: underline; }
.footer-icon { flex: 0 0 auto; display: inline-flex; width: 22px; height: 22px; margin-top: 0.2em; color: var(--color-primary); }
.footer-icon svg { width: 100%; height: 100%; }
.footer-legal { list-style: none; margin: 0; padding: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.88rem; border-top: 1px solid var(--color-border); }
.footer-legal a { color: var(--color-text-muted); }
.footer-legal .link-button { color: var(--color-text-muted); }
.footer-bottom { margin-top: 2rem; padding: 1.2rem 0; border-top: 1px solid var(--color-border); font-size: 0.85rem; color: var(--color-text-muted); }
.footer-bottom p { margin: 0; }

/* ---------- Animacje ---------- */
/* Wszystkie parametry (czas, miękkość, dystans) zmienisz w theme.css. */
@keyframes reveal-up { from { opacity: 0; transform: translateY(var(--reveal-distance)); } to { opacity: 1; transform: none; } }
@keyframes reveal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes soft-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-primary) 40%, transparent); }
    60%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--color-primary) 0%, transparent); }
}

/* Wejście sekcji powitalnej (działa od razu po załadowaniu strony) */
.hero-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-media img, .hero-media .photo-placeholder { border-radius: 0; box-shadow: none; }
.hero-copy > :nth-child(2) { --i: 1; }
.hero-copy > :nth-child(3) { --i: 2; }
.hero-copy > :nth-child(4) { --i: 3; }
html.js-anim .hero-copy > * {
    animation: reveal-up var(--anim-duration) var(--anim-ease) backwards;
    animation-delay: calc(var(--i, 0) * 120ms + 120ms);
}
html.js-anim .hero-media { animation: reveal-fade 1.2s var(--anim-ease) 0.15s backwards; }
html.js-anim .hero-media img { animation: hero-zoom 2.4s var(--anim-ease) backwards; }

/* Pozostałe sekcje: elementy płynnie pojawiają się, gdy wchodzą w pole widzenia (klasy dodaje main.js) */
html.js-anim .reveal:not(.is-visible) { opacity: 0; }
html.js-anim .reveal.is-visible {
    animation: reveal-up var(--anim-duration) var(--anim-ease) backwards;
    animation-delay: calc(var(--i, 0) * 110ms);
}

/* Blog: karty unoszą się po najechaniu; kolejne karty pojawiają się z opóźnieniem (klasy dodaje main.js) */
.blog-card { transition: transform 0.35s var(--anim-ease), box-shadow 0.35s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(43, 34, 48, 0.14); }
.blog-card-body h2 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.35s var(--anim-ease), color 0.2s; }
.blog-card:hover .blog-card-body h2 a { color: var(--color-primary); background-size: 100% 2px; }
.blog-more { display: inline-block; transition: transform 0.25s var(--anim-ease); }
.blog-card:hover .blog-more { transform: translateX(4px); }
.blog-cover { animation: none; }
html.js-anim .blog-cover.reveal.is-visible { animation: reveal-fade 1s var(--anim-ease) backwards; }

/* Nagłówek: delikatny cień po przewinięciu strony */
.site-header { transition: box-shadow 0.3s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-nav a:not(.btn) { transition: color 0.2s, border-color 0.2s; }

/* Przyciski: lekkie uniesienie po najechaniu */
.btn { transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--anim-ease), box-shadow 0.25s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: none; box-shadow: none; }

/* Główny przycisk rezerwacji: bardzo delikatne, powolne „pulsowanie” zachęcające do kliknięcia */
.booking .btn-primary { animation: soft-pulse 3.6s ease-out 2.5s infinite; }
.booking .btn-primary:hover { animation-play-state: paused; }

/* Powiększone zdjęcie z galerii */
.lightbox[open] { animation: reveal-fade 0.25s ease-out; }

/* Animacje wyłączone w panelu */
html.no-anim *, html.no-anim *::before, html.no-anim *::after { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; scroll-snap-type: none !important; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
