/* ==========================================================
   1. Wymuszenie Pełnej Szerokości (Breakout)
   ========================================================== */
.psm-fullwidth-wrapper {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: 100vw !important;
    background: #121212 !important;
    color: #f0f0f0 !important;
    padding: 0 20px 100px 20px !important;
    box-sizing: border-box !important;
    min-height: 100vh !important;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 992px) {
    .psm-fullwidth-wrapper { padding-top: 140px !important; }
}

.psm-inner-container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

/* ==========================================================
   2. Siatka Kafelków (Pancerne Proporcje 4:5)
   ========================================================== */
.psm-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 35px !important;
    margin-top: 40px !important;
}

/* KAFELEK - wymuszamy rozciąganie elementów dzieci */
.psm-tile {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    aspect-ratio: 4 / 5 !important;
    background: #1a1a1a !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7) !important;
    align-items: stretch !important; /* ROZCIĄGA DZIECI NA WYSOKOŚĆ */
}

/* LEWA BELKA - WYMUSZAMY 100% WYSOKOŚCI */
.psm-tile-sidebar {
    width: 70px !important;
    min-width: 70px !important;
    height: 100% !important; /* KLUCZOWE */
    background: #222222 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 25px 0 !important;
    box-sizing: border-box !important;
}

/* LITERY - ROZCIĄGAMY NA WYSOKOŚĆ */
.psm-tile-title-vertical {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
    width: 100% !important;
}

.psm-char {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    flex-grow: 1 !important; /* Rozpycha litery */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* PRAWE ZDJĘCIE - WYMUSZAMY 100% WYSOKOŚCI */
.psm-tile-photo {
    flex: 1 !important;
    height: 100% !important; /* KLUCZOWE */
    background-size: cover !important;
    background-position: center center !important;
    position: relative !important;
}

.psm-tile-photo::before {
    content: '' !important;
    position: absolute !important;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.65) 100%) !important;
}

.psm-tile-icons {
    position: absolute !important;
    z-index: 2 !important;
    bottom: 15px !important;
    right: 15px !important;
    display: flex !important;
    gap: 12px !important;
}

.psm-tile-icons img { width: 24px !important; height: 24px !important; }

/* ==========================================================
   3. Reszta stylów (Sticky Bar, Modale - bez zmian)
   ========================================================== */
.psm-sticky-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: #1a1a1a; z-index: 99999; padding: 15px 0; }
.psm-btn { background: #fff; color: #000; border: none; padding: 14px 28px; font-weight: 700; cursor: pointer; text-transform: uppercase; }


/* ==========================================================
   3. Sticky Bar (Belka Rezerwacyjna)
   ========================================================== */
.psm-sticky-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #1a1a1a; border-top: 1px solid #333;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.8); z-index: 99999;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); padding: 15px 0;
}
.psm-sticky-bar.expanded { background: #141414; padding-top: 25px; padding-bottom: 25px; }
.psm-sticky-header, .psm-sticky-content { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.psm-sticky-header { display: flex; justify-content: space-between; align-items: center; }
.psm-sticky-content { display: none; margin-top: 20px; border-top: 1px solid #2a2a2a; padding-top: 20px; }
.psm-sticky-bar.expanded .psm-sticky-content { display: block; }

.psm-pkg-btn, .psm-time-slot {
    white-space: nowrap !important; display: inline-block; background: #262626; color: #fff;
    border: 1px solid #383838; padding: 12px 18px; border-radius: 6px; cursor: pointer;
    margin: 5px; font-size: 14px; transition: all 0.2s;
}
.psm-pkg-btn:hover, .psm-time-slot:hover { border-color: #fff; background: #333; }
.psm-pkg-btn.active, .psm-time-slot.active { background: #fff; color: #000; font-weight: bold; border-color: #fff; }
.psm-time-slot.disabled { background: #181818; color: #555; border-color: #222; text-decoration: line-through; cursor: not-allowed; }

.psm-btn {
    background: #fff; color: #000; border: none; padding: 14px 28px;
    font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 4px; cursor: pointer; transition: all 0.3s; white-space: nowrap;
}
.psm-btn:hover { background: #e0e0e0; transform: scale(1.02); }
.psm-btn-secondary { background: transparent; color: #aaa; border: 1px solid #444; }
.psm-btn-secondary:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.05); }

/* ==========================================================
   4. Modale (Popupy 1, 2, 3, 4)
   ========================================================== */
.psm-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 100000; display: none; justify-content: center; align-items: center; padding: 20px;
}
.psm-modal-overlay.active { display: flex; }
.psm-modal {
    background: #1e1e1e; border: 1px solid #333; border-radius: 12px;
    max-width: 600px; width: 100%; padding: 30px; box-shadow: 0 25px 50px rgba(0,0,0,0.9);
    color: #fff; position: relative; max-height: 90vh; overflow-y: auto;
}
.psm-modal-actions {
    display: flex; justify-content: space-between; gap: 15px; margin-top: 30px;
    border-top: 1px solid #2a2a2a; padding-top: 20px;
}
.psm-checkbox-card {
    display: flex; align-items: center; background: #262626; border: 1px solid #383838;
    border-radius: 8px; padding: 10px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
}
.psm-checkbox-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; margin: 0 15px; }
.psm-checkbox-card:hover { border-color: #666; }
.psm-checkbox-card input[type="checkbox"]:checked + img + span { font-weight: bold; color: #fff; }