body.sss-gate-open { overflow: hidden; }
.sss-booking-gate { position: fixed; inset: 0; z-index: 999999; }
.sss-booking-gate[hidden] { display: none; }
.sss-gate-backdrop { position: absolute; inset: 0; background: rgba(7, 16, 11, .78); backdrop-filter: blur(6px); }
.sss-gate-dialog {
    position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px; width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    margin: 16px auto; padding: 28px; overflow: auto; border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px; background: #122016; color: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.42);
}
.sss-gate-close { position: absolute; top: 14px; right: 16px; z-index: 4; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 1.75rem; cursor: pointer; }
.sss-gate-heading { grid-column: 1 / -1; padding-right: 52px; }
.sss-gate-heading h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.4rem); }
.sss-gate-heading > p:last-child { max-width: 760px; margin: 0; color: rgba(255,255,255,.72); }
.sss-gate-progress { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sss-gate-progress > div { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.48); }
.sss-gate-progress span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: rgba(255,255,255,.09); font-weight: 800; }
.sss-gate-progress [data-state="active"] { border-color: rgba(222,201,151,.6); background: rgba(222,201,151,.12); color: #fff; }
.sss-gate-progress [data-state="active"] span { background: #dec997; color: #122016; }
.sss-gate-progress [data-state="done"] { border-color: rgba(118,183,132,.55); background: rgba(118,183,132,.12); color: #fff; }
.sss-gate-progress [data-state="done"] span::before { content: '✓'; }
.sss-gate-progress [data-state="done"] span { font-size: 0; background: #76b784; color: #102016; }
.sss-gate-progress [data-state="done"] span::before { font-size: .9rem; }
.sss-gate-progress [data-state="ready"] { border-color: rgba(222,201,151,.6); color: #fff; }
.sss-gate-document { min-width: 0; padding: 18px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.045); }
.sss-gate-document-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.sss-gate-document-head h3 { margin: 0; color: #fff; font-size: 1.2rem; }
.sss-gate-source-link { color: #dec997; font-weight: 700; white-space: nowrap; }
.sss-gate-viewer { height: min(52vh, 620px); overflow: auto; overscroll-behavior: contain; padding: 12px; border-radius: 12px; background: #e9e9e6; scroll-behavior: smooth; }
.sss-gate-pdf-page { display: block; max-width: 100%; height: auto !important; margin: 0 auto 14px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.sss-gate-pdf-page:last-child { margin-bottom: 0; }
.sss-gate-loading, .sss-gate-error { display: grid; place-items: center; min-height: 260px; padding: 28px; color: #1b2a20; text-align: center; }
.sss-gate-error p { margin-bottom: 0; }
.sss-gate-document-foot { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-top: 12px; }
.sss-gate-status { margin: 0; color: rgba(255,255,255,.65); font-size: .9rem; }
.sss-gate-status[data-ready="true"] { color: #bfe6c7; }
.sss-gate-confirm, .sss-gate-reserve { min-height: 46px; padding: 11px 18px; border: 0; border-radius: 999px; background: #dec997; color: #122016; font: inherit; font-weight: 800; cursor: pointer; }
.sss-gate-confirm:disabled, .sss-gate-reserve:disabled { background: rgba(255,255,255,.1); color: rgba(255,255,255,.42); cursor: not-allowed; }
.sss-gate-final { align-self: start; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.055); }
.sss-gate-final p { margin-top: 0; color: rgba(255,255,255,.7); font-size: .92rem; }
.sss-gate-reserve { width: 100%; }
.sss-prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.sss-prep-card { display: block; min-height: 190px; padding: 24px; border: 1px solid rgba(18,32,22,.09); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 12px 32px rgba(18,32,22,.08); transition: transform .18s ease, box-shadow .18s ease; }
a.sss-prep-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(18,32,22,.12); }
.sss-prep-card-number { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px; border-radius: 50%; background: #122016; color: #fff; font-size: .78rem; font-weight: 900; }
.sss-prep-card h3 { margin: 0 0 8px; }
.sss-prep-card p { margin: 0 0 12px; color: #58615b; }
.sss-prep-card strong { color: #122016; }
.sss-before-axis { margin-top: clamp(72px, 9vw, 120px); }
.sss-before-axis .sss-before-list { margin-top: 24px; }
@media (max-width: 860px) {
    .sss-gate-dialog { grid-template-columns: 1fr; gap: 16px; width: min(100% - 18px, 760px); max-height: calc(100vh - 18px); margin: 9px auto; padding: 18px; border-radius: 18px; }
    .sss-gate-heading, .sss-gate-progress { grid-column: auto; }
    .sss-gate-progress { grid-template-columns: 1fr; }
    .sss-gate-progress > div { min-height: 46px; }
    .sss-gate-viewer { height: 46vh; padding: 8px; }
    .sss-gate-document-foot { grid-template-columns: 1fr; }
    .sss-gate-confirm { width: 100%; }
    .sss-gate-final { padding: 16px; }
    .sss-prep-grid { grid-template-columns: 1fr; }
    .sss-prep-card { min-height: 0; }
}
@media (max-width: 520px) {
    .sss-gate-dialog { padding: 14px; }
    .sss-gate-heading { padding-right: 42px; }
    .sss-gate-close { top: 10px; right: 10px; width: 38px; height: 38px; }
    .sss-gate-document { padding: 12px; }
    .sss-gate-document-head { align-items: flex-start; flex-direction: column; gap: 5px; }
    .sss-gate-viewer { height: 43vh; }
    .sss-before-axis { margin-top: 64px; }
}
.sss-prep-card:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(18,32,22,.12); }
.sss-prep-card-title { color: inherit; text-decoration: none; }
.sss-prep-card-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.sss-prep-card-link { color: #122016; font-weight: 800; text-decoration: none; }
.sss-prep-card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.sss-gate-text-page { margin: 0 0 18px; padding: 20px 22px; border-radius: 10px; background: #fff; color: #17221a; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.sss-gate-text-page:last-child { margin-bottom: 0; }
.sss-gate-text-page-number { margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #d9ddd9; color: #526157; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sss-gate-text-content { white-space: pre-wrap; font-family: Georgia, 'Times New Roman', serif; font-size: 1rem; line-height: 1.55; }
@media (max-width: 520px) {
    .sss-gate-text-page { padding: 16px 14px; }
    .sss-gate-text-content { font-size: .92rem; line-height: 1.5; }
}
/* v0.3.26 — viewport fit + always-visible document controls */
.sss-gate-dialog { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); margin: 12px auto; overflow: hidden; grid-template-rows: auto auto minmax(0,1fr); }
.sss-gate-document { min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.sss-gate-viewer { height: auto; min-height: 0; }
.sss-gate-document-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.sss-gate-foot-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.sss-gate-scroll-end { min-height: 46px; padding: 11px 17px; border: 1px solid rgba(222,201,151,.55); border-radius: 999px; background: transparent; color: #dec997; font: inherit; font-weight: 800; cursor: pointer; }
.sss-gate-scroll-end:hover { background: rgba(222,201,151,.12); }
.sss-gate-scroll-end:disabled { opacity: .4; cursor: wait; }
.sss-gate-confirm:not(:disabled) { box-shadow: 0 0 0 3px rgba(222,201,151,.17), 0 8px 24px rgba(222,201,151,.12); }
@media (max-width: 860px) { .sss-gate-dialog { height: calc(100dvh - 18px); max-height: calc(100dvh - 18px); overflow: auto; } .sss-gate-document { min-height: 72vh; } .sss-gate-foot-actions { justify-content: stretch; } .sss-gate-scroll-end, .sss-gate-confirm { flex: 1 1 220px; width: auto; } }

/* 0.3.28 — czterostopniowa bramka i czytelna polityka prywatności */
@media (min-width: 861px) and (max-width: 1080px) {
    .sss-gate-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sss-gate-policy-content { color: #17221a; font-family: Arial, sans-serif; font-size: .98rem; line-height: 1.62; }
.sss-gate-policy-content h1, .sss-gate-policy-content h2, .sss-gate-policy-content h3 { color: #17221a; line-height: 1.25; }
.sss-gate-policy-content h1 { font-size: 1.45rem; }
.sss-gate-policy-content h2 { margin: 1.5rem 0 .65rem; font-size: 1.2rem; }
.sss-gate-policy-content h3 { margin: 1.25rem 0 .55rem; font-size: 1.05rem; }
.sss-gate-policy-content p, .sss-gate-policy-content li { color: #27352c; }
.sss-gate-policy-content a { color: #214f31; font-weight: 700; }
.sss-gate-policy-content ul, .sss-gate-policy-content ol { padding-left: 1.4rem; }

/* 0.3.29 — mobile: dokument i panel końcowy bez nakładania */
@media (max-width: 860px) {
    .sss-gate-dialog {
        display: block;
        height: calc(100dvh - 18px);
        max-height: calc(100dvh - 18px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    .sss-gate-heading,
    .sss-gate-progress,
    .sss-gate-document,
    .sss-gate-final { width: 100%; }
    .sss-gate-progress { margin: 16px 0; }
    .sss-gate-document {
        display: block;
        height: auto;
        min-height: 0;
        margin-bottom: 16px;
    }
    .sss-gate-viewer {
        height: 46vh;
        min-height: 300px;
        max-height: 520px;
        overflow-y: auto;
    }
    .sss-gate-document-foot {
        display: block;
        margin-top: 10px;
    }
    .sss-gate-status { margin-bottom: 10px; }
    .sss-gate-foot-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .sss-gate-scroll-end,
    .sss-gate-confirm {
        width: 100%;
        min-width: 0;
    }
    .sss-gate-final {
        position: static;
        inset: auto;
        margin: 0 0 4px;
    }
}
@media (max-width: 520px) {
    .sss-gate-viewer {
        height: 42vh;
        min-height: 280px;
    }
}

/* SSS controls geometry */
.sss-gate-confirm,
.sss-gate-reserve,
.sss-gate-scroll-end { border-radius: 8px !important; }
