/* ==========================================================================
   Studio Halka — arkusz wspólny dla wszystkich stron
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENY
   -------------------------------------------------------------------------- */

:root {
    /* --- Papier i atrament --- */
    --sh-paper: #FBFBF9;
    --sh-ink: #1C1C1A;
    --sh-ink-2: #46453F;      /* tekst ciągły */
    --sh-ink-3: #63625D;      /* drugorzędny */
    /* 4,83:1 na papierze i 5,01:1 na bieli — etykiety pól i podpisy to zwykły
       tekst, więc muszą przechodzić AA. Jaśniejsze #8A8A85 dawało 3,35:1. */
    --sh-muted: #726F69;      /* etykiety, podpisy */
    --sh-line: #E7E6E1;
    --sh-line-2: #D4D3CD;     /* mocniejsza kreska */
    --sh-hover: #F2F1EC;
    --sh-white: #fff;

    /* Aliasy zgodności — używane przez starsze reguły i podstrony */
    --sh-bg: var(--sh-paper);
    --sh-fg: var(--sh-ink);
    --sh-accent: var(--sh-muted);

    /* --- Stany --- */
    --sh-ok: #15803D;
    --sh-warn: #B45309;

    /* --- Kroje --- */
    --sh-body-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

    /* ======================================================================
       KRÓJ NAGŁÓWKÓW: Jost

       Wyprowadzony z logo, nie dobrany z zewnątrz. Logotyp „halka" to
       geometryczny grotesk w rodzinie Futury: koła zamiast owali, jednopiętrowe
       „a", płaskie zakończenia, litery sklejone. Podpis „studio" to ten sam
       szkielet w chudej odmianie i nagłówki idą właśnie tym tropem — chudy
       geometryk bez rozstrzelenia. Szeryf tu nie pasuje i nie da się go
       dostroić odstępem: to inna klasa kroju, nie inne ustawienie. Jeśli kiedyś
       przyjdzie zmieniać krój, kandydat musi być geometrykiem.

       Rozstrzelenie zostaje wyłącznie przy wersalikach
       (--sh-display-track-caps), bo tam jest koniecznością techniczną,
       a nie ozdobą. Waga 300 wszędzie, 400 zarezerwowane dla .sh-h1.
       ====================================================================== */

    --sh-display-family: 'Jost', system-ui, sans-serif;
    --sh-display-weight: 300;
    --sh-display-weight-strong: 400;
    --sh-display-track: 0.010em;
    --sh-display-track-caps: 0.09em;
    --sh-display-scale: 0.95;
    --sh-display-leading: 1.2;

    /* --- Skala pisma ---
       Pięć stopni w dwóch rozdzielonych warstwach. Treść i interfejs stoją na
       13/15 w Hanken Grotesk; wszystko powyżej należy do kroju tytułowego i
       skaluje się razem z --sh-display-scale, więc zmiana kroju przelicza
       całą górę skali jednym ruchem.
       Stopnia pośredniego (17 px) świadomie nie ma: sąsiadował z 15 px w
       stosunku 1,13 i kolidował ze zdaniem w hero, co czytało się jak
       przypadek, a nie jak hierarchia. */
    --sh-t-xs: 13px;
    --sh-t-s: 15px;
    --sh-t-lede: calc(22px * var(--sh-display-scale));
    --sh-t-h2: calc(clamp(26px, 3.1vw, 34px) * var(--sh-display-scale));
    --sh-t-h1: calc(clamp(30px, 4.4vw, 46px) * var(--sh-display-scale));
    --sh-t-price: calc(42px * var(--sh-display-scale));

    /* --- Odstępy --- */
    --sh-sp-1: 4px;
    --sh-sp-2: 8px;
    --sh-sp-3: 12px;
    --sh-sp-4: 16px;
    --sh-sp-5: 24px;
    --sh-sp-6: 32px;
    --sh-sp-7: 48px;
    --sh-sp-8: 64px;
    --sh-gutter: clamp(20px, 4vw, 44px);
    --sh-section: clamp(44px, 6vw, 80px);

    /* --- Pozostałe --- */
    --sh-radius: 2px;
    --sh-max: 1180px;
    --sh-tap: 44px;
    --sh-ease: 160ms ease;
}

/* --------------------------------------------------------------------------
   2. PODSTAWY
   -------------------------------------------------------------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sh-body-family);
    font-weight: 400;
    font-size: var(--sh-t-s);
    line-height: 1.6;
    background-color: var(--sh-paper);
    color: var(--sh-ink);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
}

.sh-display,
.sh-h1,
.sh-h2 {
    font-family: var(--sh-display-family);
    font-weight: var(--sh-display-weight);
    letter-spacing: var(--sh-display-track);
    line-height: var(--sh-display-leading);
}

/* Tytuł podstrony to jedyne miejsce z mocniejszą odmianą kroju tytułowego.
   Na stronie głównej rolę h1 pełni logotyp, więc ta reguła dotyczy wyłącznie
   „O nas”, regulaminu, polityki i potwierdzenia — tam tytuł musi utrzymać
   stronę bez zdjęcia nad sobą. */
.sh-h1 {
    font-size: var(--sh-t-h1);
    font-weight: var(--sh-display-weight-strong);
    margin: 0;
}

.sh-h2 {
    font-size: var(--sh-t-h2);
    margin: 0 0 var(--sh-sp-5);
}

/* Zaznaczenie i kursor: domyślny błękit przeglądarki był jedynym kolorem na
   stronie, która w połowie jest formularzem. */
::selection {
    background: var(--sh-ink);
    color: var(--sh-paper);
}

input,
textarea {
    caret-color: var(--sh-ink);
}

:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--sh-ink);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Klasy dokładane przez script.js. Tailwind nie jest już ładowany nigdzie
   w serwisie, więc trzeba je zdefiniować u siebie. Zostają zawężone do
   .page-home, bo tylko strona główna ich używa: selektor z klasą body wygrywa
   z `.booking-form__group` bez `!important`, a zasięg trzyma te trzy klasy
   pomocnicze przy jednym widoku, zamiast robić z nich globalne narzędzia. */
.page-home .hidden {
    display: none;
}

.page-home .translate-y-full {
    transform: translateY(100%);
}

.page-home .animate-fadeIn {
    animation: shFadeIn 0.35s ease-out;
}

@keyframes shFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   3. NAWIGACJA — jeden rząd, 64 px, cele dotykowe ≥44 px
   -------------------------------------------------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sh-sp-4);
    height: 64px;
    padding: 0 var(--sh-gutter);
    background: rgba(251, 251, 249, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sh-line);
}

.site-nav__mark {
    display: flex;
    align-items: center;
    height: var(--sh-tap);
    text-decoration: none;
}

.site-nav__mark img {
    height: 20px;
    width: auto;
    display: block;
}

.site-nav__links {
    display: flex;
    gap: 2px;
}

.site-nav__links a {
    display: flex;
    align-items: center;
    height: var(--sh-tap);
    padding: 0 12px;
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-3);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--sh-ease);
}

.site-nav__links a:hover,
.site-nav__links a[aria-current] {
    color: var(--sh-ink);
}

.site-nav__cta {
    display: flex;
    align-items: center;
    height: var(--sh-tap);
    padding: 0 20px;
    background: var(--sh-ink);
    color: var(--sh-paper);
    font-size: var(--sh-t-xs);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border-radius: var(--sh-radius);
    transition: background-color var(--sh-ease);
}

.site-nav__cta:hover {
    background: #000;
}

/* Menu mobilne oparte na <details> — bez ani jednej linii JavaScriptu */
.site-nav__menu {
    display: none;
    position: relative;
}

.site-nav__menu > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sh-tap);
    height: var(--sh-tap);
    cursor: pointer;
    list-style: none;
    color: var(--sh-ink);
}

.site-nav__menu > summary::-webkit-details-marker {
    display: none;
}

.site-nav__menu[open] .site-nav__icon--open,
.site-nav__menu:not([open]) .site-nav__icon--close {
    display: none;
}

.site-nav__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: var(--sh-sp-2) 0;
    background: var(--sh-white);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.site-nav__panel a {
    display: flex;
    align-items: center;
    min-height: var(--sh-tap);
    padding: 0 18px;
    font-size: var(--sh-t-s);
    color: var(--sh-ink-2);
    text-decoration: none;
}

.site-nav__panel a:hover {
    background: var(--sh-hover);
    color: var(--sh-ink);
}

/* --------------------------------------------------------------------------
   4. HERO — logo jako tytuł na zdjęciu
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    height: min(74vh, 700px);
    min-height: 420px;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(18, 18, 16, 0.5) 0%,
        rgba(18, 18, 16, 0.12) 40%,
        rgba(18, 18, 16, 0) 64%
    );
    pointer-events: none;
}

/* Logo centruje się w polu sięgającym od góry kadru do 78% jego wysokości.
   Procent przy `bottom` liczy się od wysokości bloku nadrzędnego, więc wiąże
   się z kadrem — w przeciwieństwie do vh, które przy `.hero` ograniczonym do
   700 px rozjeżdżało się na wysokich ekranach i wpychało logo pod nawigację. */
.hero__title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 clamp(24px, 6vw, 64px);
    pointer-events: none;
}

.hero__logo {
    width: min(30%, 340px);
    height: auto;
    display: block;
    /* Dwa cienie: ciasny buduje krawędź cienkiego podpisu „studio", szeroki daje
       masę całemu znakowi. Bez tego podpis ginie na prześwietlonym oknie. */
    filter: brightness(0) invert(1)
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5))
            drop-shadow(0 4px 30px rgba(0, 0, 0, 0.45));
}

.hero__foot {
    position: absolute;
    left: var(--sh-gutter);
    right: var(--sh-gutter);
    bottom: clamp(26px, 4vw, 42px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--sh-sp-6);
    flex-wrap: wrap;
}

.hero__lede {
    margin: 0;
    max-width: 30ch;
    font-family: var(--sh-display-family);
    font-weight: var(--sh-display-weight);
    font-size: var(--sh-t-lede);
    letter-spacing: var(--sh-display-track);
    line-height: var(--sh-display-leading);
    color: rgba(255, 255, 255, 0.95);
}

.hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- Przyciski --- */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    font-family: var(--sh-body-family);
    font-size: var(--sh-t-s);
    font-weight: 500;
    letter-spacing: 0;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--sh-radius);
    cursor: pointer;
    transition: background-color var(--sh-ease), border-color var(--sh-ease), color var(--sh-ease);
}

.sh-btn--light {
    background: var(--sh-paper);
    color: var(--sh-ink);
}

.sh-btn--light:hover {
    background: var(--sh-white);
}

.sh-btn--ghost {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--sh-white);
}

.sh-btn--ghost:hover {
    border-color: var(--sh-white);
    background: rgba(255, 255, 255, 0.12);
}

.sh-btn--ink {
    background: var(--sh-ink);
    color: var(--sh-paper);
}

.sh-btn--ink:hover {
    background: #000;
}

.sh-btn--line {
    border-color: var(--sh-line-2);
    color: var(--sh-ink);
}

.sh-btn--line:hover {
    border-color: var(--sh-ink);
}

/* --------------------------------------------------------------------------
   5. PAS FAKTÓW — jedna cienka linia pod zdjęciem
   -------------------------------------------------------------------------- */

/* Flex z zawijaniem, bo między elementami nie ma spacji w HTML-u (inaczej
   przeglądarka zjada odstęp przy separatorze) — bez tego nie ma gdzie złamać
   linii i godziny wychodzą poza ekran przy 375 px. */
.facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: var(--sh-sp-4) var(--sh-gutter);
    border-bottom: 1px solid var(--sh-line);
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-3);
    line-height: 1.9;
}

.facts__item {
    font-style: normal;
    white-space: nowrap;
}

.facts__item + .facts__item::before {
    content: "·";
    margin: 0 12px;
    color: #BFBEB8;
}

/* --------------------------------------------------------------------------
   6. SEKCJE TREŚCI
   -------------------------------------------------------------------------- */

.sec {
    max-width: var(--sh-max);
    margin: 0 auto;
    padding: var(--sh-section) var(--sh-gutter);
}

.sec + .sec {
    border-top: 1px solid var(--sh-line);
}

.sec__cols {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(28px, 5vw, 68px);
}

.sec__body {
    font-size: var(--sh-t-s);
    line-height: 1.75;
    color: var(--sh-ink-2);
    max-width: 50ch;
}

.sec__body p {
    margin: 0 0 var(--sh-sp-3);
}

.sec__body p:last-child {
    margin-bottom: 0;
}

.feature-list {
    list-style: none;
    margin: var(--sh-sp-5) 0 0;
    padding: 0;
    columns: 2;
    column-gap: 28px;
    font-size: var(--sh-t-s);
    line-height: 2;
    color: var(--sh-ink-2);
}

.feature-list li {
    break-inside: avoid;
}

.pricing {
    border-top: 1px solid var(--sh-line);
}

.pricing__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sh-sp-5);
    padding: 14px 0;
    border-bottom: 1px solid var(--sh-line);
}

.pricing__label {
    font-size: var(--sh-t-s);
    color: var(--sh-ink-2);
}

.pricing__value {
    font-size: var(--sh-t-s);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pricing__note {
    margin: var(--sh-sp-4) 0 0;
    font-size: var(--sh-t-xs);
    line-height: 1.75;
    color: var(--sh-muted);
}

.pricing__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--sh-tap);
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-2);
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.photo-strip img {
    width: 100%;
    height: min(28vh, 250px);
    object-fit: cover;
    display: block;
}

.photo-strip__more {
    margin: 0;
    border-bottom: 1px solid var(--sh-line);
}

.photo-strip__more a {
    display: inline-flex;
    align-items: center;
    min-height: var(--sh-tap);
    padding: 0 var(--sh-gutter);
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-2);
}

/* --------------------------------------------------------------------------
   7. REZERWACJA — układ
   -------------------------------------------------------------------------- */

/* Dropdown musi zachodzić na kolejne sekcje: .reveal-on-scroll tworzy kontekst
   nakładania, więc cała sekcja rezerwacji musi być wyżej niż stopka. */
#rezerwacja {
    position: relative;
    z-index: 40;
    max-width: var(--sh-max);
    margin: 0 auto;
    padding: var(--sh-section) var(--sh-gutter);
    border-top: 1px solid var(--sh-line);
    scroll-margin-top: 72px;
}

footer#kontakt {
    position: relative;
    z-index: 20;
}

.booking {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
}

.booking__step {
    margin: 0 0 var(--sh-sp-4);
    font-size: var(--sh-t-xs);
    color: var(--sh-muted);
}

.booking__block + .booking__block {
    margin-top: var(--sh-sp-7);
    padding-top: var(--sh-sp-6);
    border-top: 1px solid var(--sh-line);
}

.booking__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sh-sp-5);
}

.booking__field-label {
    display: block;
    margin-bottom: 10px;
    font-size: var(--sh-t-xs);
    color: var(--sh-muted);
}

.booking__hint {
    margin: 10px 0 0;
    font-size: var(--sh-t-xs);
    line-height: 1.6;
    color: var(--sh-muted);
}

.booking__extras {
    margin-top: var(--sh-sp-6);
    padding-top: var(--sh-sp-5);
    border-top: 1px solid var(--sh-line);
    display: flex;
    flex-direction: column;
    gap: var(--sh-sp-2);
}

.booking__notice {
    margin: var(--sh-sp-4) 0 0;
    font-size: var(--sh-t-xs);
    color: var(--sh-warn);
}

/* --------------------------------------------------------------------------
   8. KALENDARZ (FullCalendar)
   -------------------------------------------------------------------------- */

.calendar-shell {
    padding: 10px;
    background: var(--sh-white);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
}

@media (min-width: 768px) {
    .calendar-shell {
        padding: 14px;
    }
}

.fc {
    border: none !important;
    max-width: 560px;
    margin: 0 auto;
    --fc-border-color: var(--sh-line);
}

.fc .fc-toolbar-title {
    font-family: var(--sh-display-family);
    font-weight: var(--sh-display-weight);
    font-size: var(--sh-t-lede) !important;
    letter-spacing: var(--sh-display-track-caps);
}

.fc-direction-ltr .fc-button-group > .fc-button {
    margin-left: 4px;
}

.fc .fc-button {
    min-width: var(--sh-tap) !important;
    min-height: var(--sh-tap) !important;
    padding: 0 10px !important;
    border-radius: var(--sh-radius) !important;
    background: var(--sh-white) !important;
    border: 1px solid var(--sh-line) !important;
    color: var(--sh-ink) !important;
    font-family: var(--sh-body-family) !important;
    font-size: var(--sh-t-xs) !important;
    font-weight: 400 !important;
    text-transform: none;
    letter-spacing: 0;
    transition: background-color var(--sh-ease), border-color var(--sh-ease);
}

.fc .fc-button:hover {
    background: var(--sh-hover) !important;
    border-color: var(--sh-line-2) !important;
}

.fc .fc-button:focus {
    outline: 2px solid var(--sh-ink);
    outline-offset: 2px;
    box-shadow: none;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--sh-ink) !important;
    color: var(--sh-paper) !important;
    border-color: var(--sh-ink) !important;
}

.fc-col-header-cell-cushion {
    font-size: var(--sh-t-xs) !important;
    font-weight: 400;
    letter-spacing: 0 !important;
    color: var(--sh-muted) !important;
    padding: 8px 0 !important;
    text-decoration: none;
}

.fc-daygrid-day {
    border: 1px solid var(--sh-line) !important;
    border-radius: var(--sh-radius) !important;
    cursor: pointer;
    transition: background-color var(--sh-ease);
}

.fc-daygrid-day-frame {
    min-height: var(--sh-tap);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-daygrid-day-top {
    justify-content: center;
}

.fc-daygrid-day-number {
    font-size: var(--sh-t-s) !important;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    color: var(--sh-ink);
    opacity: 1 !important;
    padding: 0 !important;
    text-decoration: none;
}

.fc-daygrid-day:not(.fc-day-disabled):not(.selected-day):hover {
    background-color: var(--sh-hover) !important;
}

.fc-day-today:not(.selected-day) {
    background: transparent !important;
}

.fc-day-today:not(.selected-day) .fc-daygrid-day-frame {
    box-shadow: inset 0 -2px 0 var(--sh-ink);
}

.selected-day {
    background-color: var(--sh-ink) !important;
    border-color: var(--sh-ink) !important;
}

.selected-day .fc-daygrid-day-number {
    color: var(--sh-paper) !important;
    font-weight: 500;
}

.fc-day-disabled {
    background-color: rgba(0, 0, 0, 0.02) !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.fc-day-disabled .fc-daygrid-day-number {
    color: #C6C5BF !important;
}

.fc-day-other {
    visibility: hidden;
}

/* Tydzień bez ani jednego wybieralnego dnia to pusty pas siatki — zdarza się
   na początku bieżącego miesiąca, bo validRange odcina przeszłość.

   UWAGA, pułapka: NIE chowaj takiego wiersza przez `display: none`.
   FullCalendar mapuje kliknięcie na datę przez PositionCache zbudowany
   z prostokątów wierszy. Wiersz z `display: none` zwraca prostokąt 0,0,0,0,
   więc trafia na sam początek osi i rozsypuje całe odwzorowanie — `dateClick`
   przestaje działać dla WSZYSTKICH dni, nie tylko dla ukrytego tygodnia.
   Zwinięcie wysokości przy wierszu pozostawionym w układzie jest bezpieczne:
   prostokąt ma poprawną pozycję, tylko zerową wysokość.
   Przeglądarki bez :has() pokażą pas jak dotąd. */
.fc-daygrid-body tr:not(:has(td:not(.fc-day-disabled):not(.fc-day-other))) > td {
    height: 0;
    padding: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    overflow: hidden;
}

.fc-daygrid-body tr:not(:has(td:not(.fc-day-disabled):not(.fc-day-other))) .fc-daygrid-day-frame {
    display: none;
}

/* --------------------------------------------------------------------------
   9. POLA FORMULARZA
   -------------------------------------------------------------------------- */

.floating-field {
    position: relative;
}

.floating-field__input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid var(--sh-line-2);
    border-radius: var(--sh-radius);
    font-family: var(--sh-body-family);
    font-size: var(--sh-t-s);
    color: var(--sh-ink);
    background-color: var(--sh-white);
    transition: border-color var(--sh-ease), box-shadow var(--sh-ease);
}

.floating-field__input:focus {
    outline: none;
    border-color: var(--sh-ink);
    box-shadow: 0 0 0 3px rgba(28, 28, 26, 0.07);
}

.floating-field__input::placeholder {
    color: transparent;
}

.floating-field__label {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 5px;
    max-width: calc(100% - 26px);
    font-size: var(--sh-t-s);
    color: var(--sh-muted);
    background: linear-gradient(to bottom, transparent 45%, var(--sh-white) 45%, var(--sh-white) 55%, transparent 55%);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: top 160ms ease, font-size 160ms ease, color 160ms ease;
}

.floating-field__input:focus + .floating-field__label,
.floating-field__input:not(:placeholder-shown) + .floating-field__label {
    top: 0;
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-3);
    background: linear-gradient(to bottom, var(--sh-white) 55%, transparent 55%);
}

.booking-other-notes {
    width: 100%;
    min-height: 88px;
    padding: 13px 16px;
    border: 1px solid var(--sh-line-2);
    border-radius: var(--sh-radius);
    background: var(--sh-white);
    font-family: var(--sh-body-family);
    font-size: var(--sh-t-s);
    line-height: 1.6;
    resize: vertical;
}

.booking-other-notes:focus {
    outline: none;
    border-color: var(--sh-ink);
    box-shadow: 0 0 0 3px rgba(28, 28, 26, 0.07);
}

.people-stepper {
    width: 100%;
    display: grid;
    grid-template-columns: var(--sh-tap) 1fr var(--sh-tap);
    align-items: center;
    border: 1px solid var(--sh-line-2);
    border-radius: var(--sh-radius);
    background: var(--sh-white);
    transition: border-color var(--sh-ease), box-shadow var(--sh-ease);
}

.people-stepper:focus-within {
    border-color: var(--sh-ink);
    box-shadow: 0 0 0 3px rgba(28, 28, 26, 0.07);
}

.people-stepper__button {
    height: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--sh-ink);
    font-family: inherit;
    font-size: var(--sh-t-s);
    line-height: 1;
    cursor: pointer;
    transition: color var(--sh-ease), opacity var(--sh-ease);
}

.people-stepper__button:hover:not(:disabled) {
    color: var(--sh-ink-3);
}

.people-stepper__button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.people-stepper__input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--sh-ink);
    font-family: inherit;
    font-size: var(--sh-t-s);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.people-stepper__input:focus {
    outline: none;
}

select.select-visually-hidden {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: none !important;
}

.custom-dropdown {
    position: relative;
}

.custom-dropdown__trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 16px;
    border: 1px solid var(--sh-line-2);
    border-radius: var(--sh-radius);
    background: var(--sh-white);
    font-family: var(--sh-body-family);
    font-size: var(--sh-t-s);
    color: var(--sh-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color var(--sh-ease), box-shadow var(--sh-ease);
}

.custom-dropdown__trigger:hover:not(:disabled) {
    border-color: var(--sh-ink-3);
}

.custom-dropdown__trigger:focus {
    outline: none;
    border-color: var(--sh-ink);
    box-shadow: 0 0 0 3px rgba(28, 28, 26, 0.07);
}

.custom-dropdown.is-open .custom-dropdown__trigger {
    border-color: var(--sh-ink);
}

.custom-dropdown__chevron {
    flex-shrink: 0;
    display: flex;
    color: var(--sh-muted);
    transition: transform 200ms ease;
}

.custom-dropdown.is-open .custom-dropdown__chevron {
    transform: rotate(180deg);
}

.custom-dropdown__value {
    flex: 1;
    min-height: 1.25rem;
}

.custom-dropdown__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 60;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: var(--sh-sp-1) 0;
    list-style: none;
    background: var(--sh-white);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.custom-dropdown__panel li {
    display: flex;
    align-items: center;
    min-height: var(--sh-tap);
    padding: 0 16px;
    font-size: var(--sh-t-s);
    cursor: pointer;
    transition: background-color 120ms ease;
}

.custom-dropdown__panel li:hover,
.custom-dropdown__panel li:focus {
    background-color: var(--sh-hover);
    outline: none;
}

.custom-dropdown__panel li.is-active {
    font-weight: 500;
}

.custom-dropdown.dropdown--disabled .custom-dropdown__trigger {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Checkboxy */
.check-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.check-row label {
    display: flex;
    align-items: center;
    min-height: var(--sh-tap);
    font-size: var(--sh-t-s);
    line-height: 1.5;
    color: var(--sh-ink-2);
    cursor: pointer;
}

input[type="checkbox"].custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    margin: 12px 0 0;
    border: 1px solid var(--sh-ink);
    background-color: var(--sh-white);
    border-radius: var(--sh-radius);
    cursor: pointer;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    transition: background-color var(--sh-ease);
}

input[type="checkbox"].custom-checkbox:checked {
    background-color: var(--sh-ink);
}

input[type="checkbox"].custom-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--sh-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"].custom-checkbox:hover:not(:checked) {
    background-color: var(--sh-hover);
}

input[type="checkbox"].custom-checkbox:checked:hover {
    opacity: 0.85;
}

.nip-lookup-feedback {
    font-size: var(--sh-t-xs);
    line-height: 1.5;
    min-height: 1.25rem;
    margin: 0;
}

.nip-lookup-feedback--success {
    color: var(--sh-ok);
    font-weight: 500;
}

.nip-lookup-feedback--error {
    color: var(--sh-warn);
}

.nip-lookup-feedback--muted {
    color: var(--sh-muted);
}

/* --------------------------------------------------------------------------
   10. PODSUMOWANIE REZERWACJI
   -------------------------------------------------------------------------- */

.summary-card {
    position: sticky;
    top: 88px;
    padding: clamp(24px, 3vw, 34px);
    background: var(--sh-white);
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.05);
}

.summary-card__title {
    margin: 0 0 var(--sh-sp-5);
    font-size: var(--sh-t-xs);
    color: var(--sh-muted);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-list__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--sh-sp-3);
    font-size: var(--sh-t-s);
}

.summary-list__key {
    color: var(--sh-muted);
    flex-shrink: 0;
}

.summary-value {
    font-weight: 500;
    text-align: right;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.summary-value--pending {
    display: inline-block;
    min-width: 68px;
    min-height: 18px;
    border-radius: var(--sh-radius);
    color: transparent !important;
    background: linear-gradient(90deg, #EDECE7 0%, #F6F5F1 50%, #EDECE7 100%);
    background-size: 200% 100%;
    animation: summaryPulse 1.15s ease-in-out infinite;
}

@keyframes summaryPulse {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.summary-value--flash {
    animation: summaryValueFlash 0.45s ease-out;
}

@keyframes summaryValueFlash {
    from { opacity: 0.35; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.summary-pay {
    margin-top: var(--sh-sp-5);
    padding-top: var(--sh-sp-5);
    border-top: 1px solid var(--sh-line);
    display: flex;
    flex-direction: column;
    gap: var(--sh-sp-1);
}

.summary-pay__label {
    font-size: var(--sh-t-xs);
    color: var(--sh-muted);
}

.summary-price-original {
    font-size: var(--sh-t-s);
    color: var(--sh-muted);
    text-decoration: line-through;
}

.summary-pay-amount {
    font-family: var(--sh-display-family);
    font-size: var(--sh-t-price);
    font-weight: var(--sh-display-weight);
    letter-spacing: var(--sh-display-track);
    line-height: 1.15;
    color: var(--sh-ink);
    font-variant-numeric: tabular-nums;
}

.summary-pay__note {
    font-size: var(--sh-t-xs);
    color: var(--sh-muted);
}

.booking-form {
    margin-top: var(--sh-sp-6);
    padding-top: var(--sh-sp-6);
    border-top: 1px solid var(--sh-line);
}

.booking-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--sh-sp-4);
}

.booking-form__group + .booking-form__group,
.booking-form > * + * {
    margin-top: var(--sh-sp-5);
}

.terms-link {
    display: block;
    padding: 14px 16px;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    font-size: var(--sh-t-s);
    color: var(--sh-ink-2);
    text-decoration: none;
    transition: border-color var(--sh-ease), color var(--sh-ease);
}

.terms-link:hover {
    border-color: var(--sh-ink);
    color: var(--sh-ink);
}

.terms-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-top: var(--sh-sp-4);
    border-top: 1px solid var(--sh-line);
}

.terms-consent label {
    font-size: var(--sh-t-xs);
    line-height: 1.7;
    color: var(--sh-ink-2);
    cursor: pointer;
}

.terms-consent a {
    color: var(--sh-ink);
}

.submit-booking-btn {
    width: 100%;
    min-height: 56px;
    padding: 16px;
    border: none;
    border-radius: var(--sh-radius);
    background: var(--sh-ink);
    color: var(--sh-paper);
    font-family: var(--sh-body-family);
    font-size: var(--sh-t-s);
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--sh-ease), opacity var(--sh-ease);
}

.submit-booking-btn:hover:not(:disabled):not(.is-loading) {
    background-color: #000;
}

.submit-booking-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.submit-booking-btn.is-loading {
    cursor: progress;
}

.submit-booking-btn.is-loading .submit-booking-btn__idle {
    display: none !important;
}

.submit-booking-btn.is-loading .submit-booking-btn__busy {
    display: inline-flex !important;
}

.submit-booking-btn__busy {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-booking-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--sh-white);
    border-radius: 50%;
    animation: bookingSpin 0.65s linear infinite;
}

@keyframes bookingSpin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   11. STOPKA
   -------------------------------------------------------------------------- */

.site-footer {
    border-top: 1px solid var(--sh-line);
    background: var(--sh-white);
    scroll-margin-top: 72px;
}

.site-footer__inner {
    max-width: var(--sh-max);
    margin: 0 auto;
    padding: var(--sh-section) var(--sh-gutter);
}

.site-footer__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sh-sp-3) var(--sh-sp-7);
    margin: 0 0 var(--sh-sp-6);
}

.site-footer__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: var(--sh-tap);
    font-size: var(--sh-t-s);
    color: var(--sh-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--sh-line-2);
    transition: border-color var(--sh-ease);
    word-break: break-word;
}

.site-footer__contacts a:hover {
    border-color: var(--sh-ink);
}

.site-footer__contacts svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.site-footer__address {
    font-style: normal;
    font-size: var(--sh-t-s);
    color: var(--sh-ink-2);
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--sh-sp-5);
    padding-top: var(--sh-sp-4);
    margin-top: var(--sh-sp-6);
    border-top: 1px solid var(--sh-line);
}

.site-footer__legal a,
.site-footer__legal span {
    display: inline-flex;
    align-items: center;
    min-height: var(--sh-tap);
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-3);
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--sh-ink);
}

/* --------------------------------------------------------------------------
   12. BANER COOKIES
   -------------------------------------------------------------------------- */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--sh-sp-4) var(--sh-gutter);
    background: var(--sh-white);
    border-top: 1px solid var(--sh-line);
    transition: transform 500ms ease;
}

.cookie-banner__inner {
    max-width: var(--sh-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sh-sp-4);
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: var(--sh-t-xs);
    line-height: 1.6;
    color: var(--sh-ink-2);
}

/* --------------------------------------------------------------------------
   13. ODSŁANIANIE SEKCJI I KROKÓW
   -------------------------------------------------------------------------- */

.step-hidden {
    display: none;
    opacity: 0;
}

.step-visible {
    display: block !important;
    opacity: 1;
    animation: shFadeIn 0.4s ease-out;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sekcje odsłania IntersectionObserver z site-utils.js. Bez JavaScriptu
   zostałby pusty ekran zamiast adresu, cennika i kontaktu — treść musi być
   widoczna także wtedy, gdy formularz rezerwacji i tak nie zadziała. */
@media (scripting: none) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .summary-value--pending { animation: none; }
    .step-visible { animation: none; }
}

/* --------------------------------------------------------------------------
   14. PODSTRONY — wspólna rama

   Wszystkie podstrony mają tę samą nawigację, tę samą stopkę i ten sam powrót
   do studia nad tytułem. Żadna nie ma własnego układu ani własnej typografii:
   różni je wyłącznie treść. Tailwind na podstronach nie jest już ładowany —
   po tej turze cała witryna stoi na jednym arkuszu.
   -------------------------------------------------------------------------- */

.subpage {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--sh-section) var(--sh-gutter);
}

/* Galeria potrzebuje pełnej szerokości pomiaru, sama treść nie. */
.subpage--wide {
    max-width: var(--sh-max);
}

.subpage__back {
    display: inline-flex;
    align-items: center;
    height: var(--sh-tap);
    margin-bottom: var(--sh-sp-4);
    font-size: var(--sh-t-xs);
    color: var(--sh-ink-3);
    text-decoration: none;
    transition: color var(--sh-ease);
}

.subpage__back:hover {
    color: var(--sh-ink);
}

.subpage__meta {
    margin: var(--sh-sp-3) 0 0;
    font-size: var(--sh-t-xs);
    color: var(--sh-muted);
}

.subpage__head {
    margin-bottom: var(--sh-sp-8);
}

.subpage__head .subpage__lede {
    margin: var(--sh-sp-4) 0 0;
    color: var(--sh-ink-2);
}

.subpage__actions {
    margin: var(--sh-sp-7) 0 0;
}

/* Treść czytana ciągiem: grotesk, luźna interlinia, miara ograniczona do
   długości, przy której oko trafia w następny wiersz bez szukania. */
.prose {
    font-size: var(--sh-t-s);
    line-height: 1.75;
    color: var(--sh-ink-2);
    max-width: 66ch;
}

.prose p {
    margin: 0 0 var(--sh-sp-4);
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose strong {
    font-weight: 500;
    color: var(--sh-ink);
}

.prose a {
    color: var(--sh-ink);
    text-decoration: underline;
    text-decoration-color: var(--sh-line-2);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--sh-ease);
}

.prose a:hover {
    text-decoration-color: var(--sh-ink);
}

/* Wypunktowania idą myślnikiem, tak samo jak lista wyposażenia na „O nas".
   Kropka listy byłaby jedynym okrągłym kształtem w całym systemie. */
.prose ul {
    list-style: none;
    margin: 0 0 var(--sh-sp-4);
    padding: 0;
}

.prose ul li {
    position: relative;
    padding-left: var(--sh-sp-5);
    margin-bottom: var(--sh-sp-2);
}

.prose ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--sh-muted);
}

/* Dokument prawny: paragrafy oddzielone powietrzem, nagłówki na stopniu lede,
   czyli bez dokładania nowego stopnia do skali. */
.legal__section {
    margin-bottom: var(--sh-sp-8);
}

.legal__section:last-child {
    margin-bottom: 0;
}

.legal__h,
.subpage__lede {
    font-family: var(--sh-display-family);
    font-weight: var(--sh-display-weight);
    font-size: var(--sh-t-lede);
    letter-spacing: var(--sh-display-track);
    line-height: var(--sh-display-leading);
    color: var(--sh-ink);
    margin: 0 0 var(--sh-sp-4);
}

.legal-table__scroll {
    overflow-x: auto;
    margin: var(--sh-sp-5) 0;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
}

.legal-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: var(--sh-t-xs);
    text-align: left;
}

.legal-table th,
.legal-table td {
    padding: var(--sh-sp-3) var(--sh-sp-4);
    border-bottom: 1px solid var(--sh-line);
}

.legal-table thead th {
    background: var(--sh-hover);
    font-weight: 500;
    color: var(--sh-ink);
}

.legal-table tbody tr:last-child td {
    border-bottom: 0;
}

.legal-table td {
    color: var(--sh-ink-2);
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   15. PODSTRONA „O NAS" — treść i galeria
   -------------------------------------------------------------------------- */

.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.about-gallery__item {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--sh-line);
    border-radius: var(--sh-radius);
    overflow: hidden;
    background: var(--sh-hover);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.about-gallery__item:hover {
    border-color: var(--sh-line-2);
    opacity: 0.92;
}

.about-gallery__item:focus-visible {
    outline: 2px solid var(--sh-ink);
    outline-offset: 2px;
}

.about-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-lightbox {
    padding: 0;
    border: none;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 3rem;
}

.gallery-lightbox__stage {
    width: min(92vw, 72rem);
    height: min(90vh, 52rem);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.gallery-lightbox__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--sh-radius);
}

.gallery-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.gallery-lightbox__close:hover {
    opacity: 1;
}

.gallery-lightbox__counter {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin: 0;
    font-size: var(--sh-t-xs);
    color: rgba(255, 255, 255, 0.7);
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--sh-radius);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox__nav:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.6);
}

.gallery-lightbox__nav--prev { left: 0.75rem; }
.gallery-lightbox__nav--next { right: 0.75rem; }

body.gallery-lightbox-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   16. BREAKPOINTY
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .booking {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .site-nav__links a {
        padding: 0 9px;
    }
}

@media (max-width: 820px) {
    .site-nav__links {
        display: none;
    }

    .site-nav__menu {
        display: block;
    }

    .hero {
        height: min(80svh, 720px);
    }

    .hero__logo {
        width: min(62%, 320px);
    }

    .hero__title {
        bottom: 26%;
    }

    .hero__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__lede {
        max-width: none;
    }

    .hero__actions .sh-btn {
        flex: 1 1 auto;
    }

    .sec__cols {
        grid-template-columns: 1fr;
    }

    .feature-list {
        columns: 1;
    }

    .booking__fields {
        grid-template-columns: 1fr;
    }

    .photo-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Poniżej ~440 px fakty i tak się zawijają, a wtedy kropka-separator startuje
   drugi wiersz. Układamy je w kolumnę i separator znika. */
@media (max-width: 480px) {
    .facts {
        flex-direction: column;
        align-items: flex-start;
        line-height: 1.7;
    }

    .facts__item + .facts__item::before {
        content: none;
    }
}

@media (max-width: 640px) {
    .gallery-lightbox__inner {
        padding: 3rem 0.5rem;
    }

    .gallery-lightbox__nav--prev { left: 0.25rem; }
    .gallery-lightbox__nav--next { right: 0.25rem; }
}

/* ======================================================================
   FAQ

   Zbudowane na <details>, tym samym tropem co menu mobilne — rozwijanie
   bez JavaScriptu. Treść odpowiedzi jest w DOM-ie także wtedy, gdy pozycja
   jest zwinięta, więc czytają ją zarówno wyszukiwarki, jak i czytniki ekranu.
   ====================================================================== */

.faq {
    max-width: 74ch;
    border-top: 1px solid var(--sh-line);
}

.faq__item {
    border-bottom: 1px solid var(--sh-line);
}

.faq__q {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sh-sp-4);
    /* 44px celu dotykowego wychodzi z paddingu, nie z min-height — wiersz
       pytania bywa dwulinijkowy i wtedy min-height i tak nic nie wnosi. */
    padding: var(--sh-sp-5) 0;
    font-family: var(--sh-display-family);
    font-weight: var(--sh-display-weight);
    font-size: var(--sh-t-lede);
    line-height: 1.35;
    color: var(--sh-ink);
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: "+";
    flex: none;
    font-size: var(--sh-t-lede);
    line-height: 1;
    color: var(--sh-muted);
    transition: transform var(--sh-ease);
}

.faq__item[open] > .faq__q::after {
    content: "−";
}

.faq__q:hover {
    color: var(--sh-ink-2);
}

.faq__a {
    padding: 0 0 var(--sh-sp-5);
    font-size: var(--sh-t-s);
    line-height: 1.75;
    color: var(--sh-ink-2);
    max-width: 62ch;
}

.faq__a p {
    margin: 0;
}

.faq__a a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq__more {
    margin: var(--sh-sp-6) 0 0;
    font-size: var(--sh-t-xs);
}

.faq__more a {
    color: var(--sh-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--sh-line-2);
    padding-bottom: 2px;
}

.faq__more a:hover {
    color: var(--sh-ink);
}
