/* ===========================
   TŁO SEKCJI OPINIE
   =========================== */

.sekcja-opinie {
    background: url('/img/tlo7.png') center/cover no-repeat fixed;
    position: relative;
    min-height: 100vh;
    padding-top: 140px; /* identycznie jak inne sekcje */
}

.sekcja-opinie .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 0;
}

/* ===========================
   KONTENER OPINII
   =========================== */

.opinie-realizacji {
    position: relative;
    z-index: 5;
    max-width: 900px; /* wyśrodkowanie listy */
    margin: 0 auto;
    padding: 20px 30px;
}

.opinie-realizacji h2 {
    text-align: center;
    color: #fff;
    font-size: 42px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ===========================
   SORTOWANIE
   =========================== */

.sortowanie {
    text-align: center;
    margin-bottom: 30px;
}

.sortowanie a {
    padding: 10px 18px;
    background: #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    margin: 0 5px;
    font-weight: 500;
}

.sortowanie a.active {
    background: #007bff;
    color: white;
}

/* ===========================
   OPINIE — JEDNA POD DRUGĄ
   =========================== */

.opinie-grid {
    display: flex;
    flex-direction: column; /* jedna pod drugą */
    gap: 25px;
}

/* ===========================
   POJEDYNCZA OPINIA
   =========================== */

.opinia-box {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.45);
    color: #333;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.opinia-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

.opinia-box strong {
    font-size: 18px;
    color: #000;
    display: block;
    margin-bottom: 6px;
}

.opinia-box small {
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.opinia-box .stars {
    color: #FFD700;
    font-size: 20px;
    margin-bottom: 12px;
}

.opinia-box .tekst {
    margin-top: 10px;
    line-height: 1.55;
    max-height: 90px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.opinia-box .tekst.expanded {
    max-height: 2000px;
}

.opinia-box .show-more {
    color: #007bff;
    cursor: pointer;
    margin-top: 10px;
    display: none;
    font-weight: 500;
}

/* ===========================
   RESPONSYWNOŚĆ
   =========================== */

@media (max-width: 480px) {
    .opinie-realizacji h2 {
        font-size: 28px;
    }

    .opinia-box {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .opinie-realizacji h2 {
        font-size: 32px;
    }
}
