/* ==========================================================================
   Editorial — wspolna baza podstron
   Uzywana przez: booking.css, prepare-for-visit.css, about.css
   Kazda strona dodaje klase .editorial na wrapperze i doklada wlasny arkusz.

   Zasady: hierarchia ze swiatla, skali i cienkiej linii.
   Bez gradientow, bez ciezkich cieni, jeden akcent.
   ========================================================================== */

.editorial {
    --bg: #151515;
    --surface: #1b1b1b;
    --ink: #f4f2f0;
    --ink-soft: #b5b1ad;
    --ink-faint: #9a958e;
    /* --accent na ciemnym tle; --accent-solid pod bialy tekst (WCAG AA) */
    --accent: #f36;
    --accent-solid: #d6325e;
    --accent-solid-hover: #bf2a53;
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .16);

    --step-eyebrow: .72rem;
    --step-body: clamp(1rem, .96rem + .2vw, 1.08rem);
    --step-lead: clamp(1.1rem, 1rem + .5vw, 1.35rem);
    --step-h2: clamp(1.6rem, 1.25rem + 1.5vw, 2.4rem);
    --step-h1: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);

    --gutter: clamp(1.5rem, 5vw, 4rem);
    --rhythm: clamp(2.25rem, 5vw, 4rem);

    display: block;
    background: var(--bg);
    color: var(--ink);
    font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.editorial ::selection {
    background: var(--accent);
    color: #fff;
}

/* --- Uklad ---------------------------------------------------------------- */

.editorial .ed-shell {
    width: min(1120px, 100% - var(--gutter) * 2);
    margin-inline: auto;
}

.editorial .ed-section {
    padding-block: var(--rhythm);
    border-top: 1px solid var(--line);
}

.editorial .ed-section:first-of-type {
    border-top: 0;
}

/* Naglowek strony jest w normalnym flow (position: relative), wiec hero nie
   musi go kompensowac - wystarczy zwykly oddech nad tytulem. */
.editorial .ed-hero {
    padding-top: clamp(1.25rem, 2.5vw, 2rem);
    padding-bottom: var(--rhythm);
}

/* --- Typografia ----------------------------------------------------------- */

.editorial .ed-eyebrow {
    display: block;
    font-size: var(--step-eyebrow);
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Tylko hyphens - bez overflow-wrap: break-word, ktore tnie wyrazy w losowym
   miejscu i bez myslnika ("Dodatkow / e"). Dzielenie po sylabach dziala,
   bo dokument ma lang="pl". */
.editorial h1 {
    font-size: var(--step-h1);
    font-weight: 300;
    line-height: 1.06;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0 0 1.75rem;
    text-align: left;
    text-wrap: balance;
    hyphens: auto;
}

.editorial h2 {
    font-size: var(--step-h2);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 0 1.5rem;
    text-align: left;
    hyphens: auto;
}

.editorial h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--ink);
    margin: 2.5rem 0 1rem;
}

.editorial h3:first-child {
    margin-top: 0;
}

.editorial p {
    font-size: var(--step-body);
    line-height: 1.75;
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
    max-width: 62ch;
}

.editorial .ed-lead {
    font-size: var(--step-lead);
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 58ch;
}

.editorial strong {
    color: var(--ink);
    font-weight: 600;
}

.editorial a {
    color: var(--ink);
    text-underline-offset: .2em;
    text-decoration-color: var(--line-strong);
    transition: text-decoration-color .2s ease, color .2s ease;
}

.editorial a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* --- Przyciski ------------------------------------------------------------ */

.editorial .ed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.5rem;
}

.editorial .ed-btn {
    --btn-bg: transparent;
    --btn-ink: var(--ink);
    --btn-line: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 3.25rem;
    padding: .9rem 1.9rem;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1;
    text-decoration: none;
    color: var(--btn-ink);
    background: var(--btn-bg);
    border: 1px solid var(--btn-line);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.editorial .ed-btn:hover,
.editorial .ed-btn:focus-visible {
    text-decoration: none;
}

.editorial .ed-btn--primary {
    --btn-bg: var(--accent-solid);
    --btn-ink: #fff;
    --btn-line: var(--accent-solid);
}

.editorial .ed-btn--primary:hover,
.editorial .ed-btn--primary:focus-visible {
    --btn-bg: var(--accent-solid-hover);
    --btn-line: var(--accent-solid-hover);
    color: #fff;
}

.editorial .ed-btn--ghost:hover,
.editorial .ed-btn--ghost:focus-visible {
    --btn-line: var(--ink);
    color: var(--ink);
}

.editorial .ed-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* --- Listy ---------------------------------------------------------------- */

.editorial .ed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.editorial .ed-list li {
    position: relative;
    padding: 0 0 1.1rem 1.6rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-body);
    line-height: 1.7;
    color: var(--ink-soft);
}

.editorial .ed-list li:last-child {
    margin-bottom: 0;
    border-bottom: 0;
    padding-bottom: 0;
}

.editorial .ed-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .7em;
    width: 6px;
    height: 1px;
    background: var(--accent);
}

/* --- Wyroznienie ---------------------------------------------------------- */

.editorial .ed-note {
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    background: var(--surface);
    border-left: 2px solid var(--accent);
    margin: 0 0 1.75rem;
}

.editorial .ed-note p:last-child {
    margin-bottom: 0;
}

/* --- Wejscie sekcji ------------------------------------------------------- */

/* Ukrywamy dopiero, gdy JS potwierdzi, ze przejmuje animacje (.is-animated).
   Bez JS albo przy awarii obserwatora tresc pozostaje widoczna. */
.editorial.is-animated .ed-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.editorial.is-animated .ed-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .editorial.is-animated .ed-reveal,
    .editorial.is-animated .ed-reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .editorial *,
    .editorial *::before,
    .editorial *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* --- Nawigacja w stopce ---------------------------------------------------- */

/* Pasek w stopce jest jednoliniowy i centrowany (inline-block z .footer-minimal
   w style.min.css). Dluga etykieta lamala sie WEWNATRZ pozycji, przez co jej box
   byl dwuliniowy i przy vertical-align: baseline wypychal sie nad pozostale -
   pasek rozjezdzal sie na trzy linie w przypadkowej kolejnosci.
   nowrap tego pilnuje, a mniejszy padding daje miejsce na wiecej pozycji. */
/* Ujemny margines musi odpowiadac paddingowi pozycji - w style.min.css jest
   dobrany do 20px, wiec po zmianie na 14px trzeba go poprawic razem z nim. */
.footer-minimal .rd-navbar-nav {
    margin-left: -14px;
    margin-right: -14px;
}

.footer-minimal .rd-navbar-nav > * {
    padding-left: 14px;
    padding-right: 14px;
    vertical-align: top;
}

.footer-minimal .rd-navbar-nav .rd-nav-link {
    white-space: nowrap;
}
