/* =================================
   CARD STACK
================================= */

.card-stack {
    position: relative;
    width: 300px;
    height: 420px;
    margin: 80px auto;
    cursor: pointer;
}

.card-stack-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: #fff;
}

.card-stack-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Kolejność kart */

.card-stack-item:nth-child(1) {
    transform: translate(0, 0) rotate(-5deg);
}

.card-stack-item:nth-child(2) {
    transform: translate(0, 0) rotate(-2deg);
}

.card-stack-item:nth-child(3) {
    transform: translate(0, 0) rotate(2deg);
}

.card-stack-item:nth-child(4) {
    transform: translate(0, 0) rotate(5deg);
}

/* Mobile */

@media (max-width: 600px) {
    .card-stack {
        width: 240px;
        height: 340px;
    }
}
