/* 320studio Scroll Offer v6.1 */

.sof-wrap { position: relative; }
.sof-spacer { height: 0; }

.sof-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.sof-card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    pointer-events: none;
}

.sof-card.is-active {
    opacity: 1;
    pointer-events: auto;
}

.sof-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(48px, 7vw, 100px) clamp(40px, 6vw, 90px);
    position: relative;
    z-index: 2;
    overflow-y: auto;
}

.sof-title {
    font-family: 'Kalnia', serif;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.sof-body-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.75;
    font-weight: 300;
    max-width: 480px;
    margin: 0 0 36px;
}



/* Media */
.sof-media {
    position: relative;
    overflow: hidden;
}

.sof-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
    transition: transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left center;
}

.sof-media-placeholder {
    position: absolute;
    inset: 0;
    background: #e8e4dc;
}

.sof-media-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1;
    pointer-events: none;
}

/* Progress */
.sof-progress {
    position: absolute;
    left: 36px;
    bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    z-index: 10;
}

.sof-progress-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.3s;
}

.sof-progress-dot.is-active {
    background: var(--global-palette1, #7b1610);
    transform: scale(1.6);
}

/* Mobile */
@media (max-width: 768px) {
    .sof-sticky { height: auto; position: relative; }
    .sof-spacer { display: none; }

    .sof-card {
        position: relative;
        grid-template-columns: 1fr;
        opacity: 1;
        pointer-events: auto;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .sof-media { height: 56vw; min-height: 220px; order: 1; }
    .sof-media img { position: absolute; transform: none !important; }
    .sof-text { order: 2; padding: 36px 24px; }
    .sof-progress { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sof-media img { will-change: auto; }
}

/* Padding przycisku — góra:16, prawo:24, dół:16, lewo:32 */
.sof-wrap .kb-button {
    padding: 16px 24px 16px 32px !important;
}
