/* ═══════════════════════════════════════════════════════════════════════
   Prezentacja Serwera 2 — ciąg pociętych obrazków ułożonych jeden pod
   drugim, bez przerw, tworzących jeden długi ciągły obraz.
   ═══════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    background-color: #0b0b0d;
    /* warstwy od góry: przyciemnienie, pionowe linie siatki, poziome linie siatki, zdjęcie tła */
    background-image:
        linear-gradient(rgba(6, 6, 8, 0.6), rgba(6, 6, 8, 0.6)),
        repeating-linear-gradient(90deg, rgba(232, 199, 122, 0.07) 0px, rgba(232, 199, 122, 0.07) 1px, transparent 1px, transparent 42px),
        repeating-linear-gradient(0deg, rgba(232, 199, 122, 0.07) 0px, rgba(232, 199, 122, 0.07) 1px, transparent 1px, transparent 42px),
        url(../images/prezentacja2/tlo.jpg);
    background-position: center top;
    background-size: cover, 42px 42px, 42px 42px, cover;
    background-repeat: no-repeat, repeat, repeat, no-repeat;
    background-attachment: fixed, fixed, fixed, fixed;
}

.p2-page {
    max-width: 1500px;
    margin: 64px auto 0;
    position: relative;
    border-left: 1px solid rgba(232, 199, 122, 0.18);
    border-right: 1px solid rgba(232, 199, 122, 0.18);
    border-top: 1px solid rgba(232, 199, 122, 0.18);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.5),
        0 0 90px 10px rgba(0, 0, 0, 0.85),
        0 0 200px 40px rgba(0, 0, 0, 0.55);
}

.p2-slide {
    display: block;
    width: 100%;
    height: auto;
}

.p2-nav {
    position: static;
}

.p2-nav-row {
    display: contents;
}

/* Przycisk powrotu — okrągła ikonka w lewym dolnym rogu, na każdej szerokości ekranu */
.p2-back-link {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(0, 0, 0, 0.65);
    color: #e8c77a;
    text-decoration: none;
    border-radius: 50%;
    border: 1px solid rgba(232, 199, 122, 0.4);
    font-size: 0;
    transition: background 0.2s ease;
}

.p2-back-link::before {
    content: '\2302'; /* ⌂ */
    font-size: 19px;
    line-height: 1;
}

.p2-back-link:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Uchwyt przy lewej krawędzi ekranu, wysuwa spis treści — na każdej szerokości ekranu */
.p2-toc-toggle {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 58px;
    background: rgba(0, 0, 0, 0.65);
    color: #e8c77a;
    border: 1px solid rgba(232, 199, 122, 0.4);
    border-left: none;
    border-radius: 0 8px 8px 0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.p2-toc-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
}

.p2-nav--open .p2-toc-toggle-arrow {
    display: inline-block;
    transform: rotate(180deg);
}

/* ── Spis treści — wysuwany panel przy lewej krawędzi ───────────────────── */

.p2-toc {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 14;
    width: min(260px, 80vw);
    height: 100%;
    background: rgba(6, 6, 8, 0.9);
    border: 1px solid rgba(232, 199, 122, 0.25);
    border-left-width: 0;
    border-radius: 0 10px 10px 0;
    padding: 64px 10px 20px 34px;
    backdrop-filter: blur(4px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.p2-nav--open .p2-toc {
    transform: translateX(0);
}

.p2-toc-title {
    color: #e8c77a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    padding-right: 8px;
}

.p2-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p2-toc-list a {
    display: block;
    color: #cfd6e0;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
    padding: 5px 8px 5px 0;
    border-left: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease, padding-left 0.15s ease;
}

.p2-toc-list a:hover {
    color: #e8c77a;
    border-left-color: rgba(232, 199, 122, 0.6);
    padding-left: 6px;
}

.p2-toc::-webkit-scrollbar { width: 6px; }
.p2-toc::-webkit-scrollbar-thumb { background: rgba(232, 199, 122, 0.3); border-radius: 3px; }

/* ── Bramka logowania ────────────────────────────────────────────────── */

.p2-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.p2-gate-box {
    max-width: 440px;
    width: 100%;
    text-align: center;
    background: rgba(6, 6, 8, 0.78);
    border: 1px solid rgba(232, 199, 122, 0.3);
    border-radius: 10px;
    padding: 40px 32px;
    box-shadow: 0 0 90px 10px rgba(0, 0, 0, 0.85);
}

.p2-gate-title {
    color: #e8c77a;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.p2-gate-text {
    color: #d8dee8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 6px;
}

.p2-gate-text--sub {
    color: #9aa3b0;
    font-size: 13px;
    margin-bottom: 26px;
}

.p2-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.p2-gate-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(232, 199, 122, 0.4);
    color: #e8c77a;
    background: rgba(232, 199, 122, 0.08);
    transition: background 0.2s ease;
    cursor: pointer;
    appearance: none;
}

.p2-gate-btn:hover {
    background: rgba(232, 199, 122, 0.18);
}

.p2-gate-btn--primary {
    background: rgba(232, 199, 122, 0.85);
    color: #0b0b0d;
}

.p2-gate-btn--primary:hover {
    background: #e8c77a;
}

/* ── Popup logowania (na bramce prezentacji) ────────────────────────────── */

.p2-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.72);
    z-index: 20;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.p2-modal-box {
    position: relative;
    width: 100%;
    max-width: 360px;
    background: #0f1013;
    border: 1px solid rgba(232, 199, 122, 0.35);
    border-radius: 10px;
    padding: 32px 26px 26px;
    box-shadow: 0 0 90px 10px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.p2-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #9aa3b0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s ease;
}

.p2-modal-close:hover {
    color: #e8c77a;
}

.p2-modal-error {
    background: rgba(120, 20, 20, 0.4);
    border: 1px solid rgba(220, 90, 90, 0.5);
    color: #f3c6c6;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 16px;
    text-align: left;
}

.p2-modal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p2-modal-form input[type="text"],
.p2-modal-form input[type="password"] {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 10px 12px;
    color: #e5e9f0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    outline: none;
}

.p2-modal-form input[type="text"]:focus,
.p2-modal-form input[type="password"]:focus {
    border-color: rgba(232, 199, 122, 0.6);
}

.p2-modal-form .cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 2px 0;
}

.p2-modal-forgot {
    display: block;
    margin-top: 14px;
    color: #7d8494;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.p2-modal-forgot:hover {
    color: #e8c77a;
}
