/* Kontener */
.fade-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Treść */
.fade-inner {
    padding-bottom: 3rem; /* miejsce na przycisk */
}

/* Overlay */
.fade-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

/* Gradient "zanikania" */
.fade-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #fff 60%);
    transition: opacity 0.3s ease;
    opacity: 1;
}

/* Przycisk */
.fade-btn {
    position: relative;
    z-index: 2;
    margin: 8px;
    padding: 8px 14px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
}
.fade-btn:hover {
    background: #005f8d;
}

/* Po rozwinięciu gradient znika */
.fade-wrapper.expanded .fade-gradient {
    opacity: 0;
}
