/* Ściepka 0.8 — strona główna */

.sc-home {
    --sc-home-text: #171717;
    --sc-home-muted: #747880;
    --sc-home-border: #e8e9ed;
    --sc-home-accent: #ff3557;
    --sc-home-accent2: #ff7a5e;
    background: #fff;
    color: var(--sc-home-text);
}

.sc-home-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.sc-home-kicker {
    color: var(--sc-home-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
}

.sc-home-primary,
.sc-home-secondary {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}

.sc-home-primary {
    border: 0;
    background:
        linear-gradient(
            135deg,
            var(--sc-home-accent),
            var(--sc-home-accent2)
        );
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 10px 24px rgba(255,53,87,.19);
}

.sc-home-primary:hover {
    transform: translateY(-2px);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: 0 14px 32px rgba(255,53,87,.28);
}

.sc-home-secondary {
    border: 1px solid var(--sc-home-border);
    background: #fff;
    color: var(--sc-home-text) !important;
}

.sc-home-secondary:hover {
    border-color: transparent;
    background:
        linear-gradient(
            135deg,
            var(--sc-home-accent),
            var(--sc-home-accent2)
        );
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.sc-home-hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: 72px;
    padding-block: 70px 86px;
}

.sc-home-hero__copy h1,
.sc-home-user-hero h1 {
    margin: 8px 0 20px;
    font-size: clamp(52px, 7.7vw, 92px);
    line-height: .94;
    letter-spacing: -.055em;
}

.sc-home-hero__copy p {
    max-width: 610px;
    margin: 0;
    color: var(--sc-home-muted);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
}

.sc-home-hero__actions,
.sc-home-user-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.sc-home-hero__visual {
    display: flex;
    justify-content: center;
}

.sc-home-hero__visual .sc-home-product {
    width: min(420px, 100%);
    transform: rotate(2deg);
    box-shadow: 0 28px 80px rgba(23,23,23,.12);
}

.sc-home-dream-card {
    width: min(420px, 100%);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    border-radius: 28px;
    background: #171717;
    color: #fff;
}

.sc-home-dream-card span {
    color: #ff7a5e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.sc-home-dream-card h3 {
    margin: 8px 0 6px;
    font-size: 34px;
}

.sc-home-dream-card p {
    margin: 0;
    color: rgba(255,255,255,.66);
}

.sc-home-how,
.sc-home-products,
.sc-home-feed-preview {
    padding-block: 72px;
}

.sc-home-how {
    border-top: 1px solid var(--sc-home-border);
}

.sc-home-section-heading {
    margin-bottom: 28px;
}

.sc-home-section-heading--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.sc-home-section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.035em;
}

.sc-home-section-heading > a {
    color: var(--sc-home-text) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.sc-home-section-heading > a:hover {
    color: var(--sc-home-accent) !important;
}

.sc-home-how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sc-home-how__grid article {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--sc-home-border);
    border-radius: 22px;
    background: #fff;
}

.sc-home-how__grid article > span {
    color: var(--sc-home-muted);
    font-size: 11px;
}

.sc-home-how__grid strong {
    margin-top: auto;
    font-size: 30px;
    letter-spacing: -.04em;
}

.sc-home-how__grid p {
    margin: 7px 0 0;
    color: var(--sc-home-muted);
    line-height: 1.55;
}

.sc-home-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.sc-home-product {
    overflow: hidden;
    border: 1px solid var(--sc-home-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(23,23,23,.04);
}

.sc-home-product__image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f5f7;
    color: #b7bbc4;
    font-size: 56px;
    text-decoration: none !important;
}

.sc-home-product__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
    transition: transform .24s ease;
}

.sc-home-product:hover .sc-home-product__image img {
    transform: scale(1.025);
}

.sc-home-product__body {
    padding: 17px;
}

.sc-home-product__body h3 {
    min-height: 46px;
    margin: 7px 0 9px;
    font-size: 16px;
    line-height: 1.4;
}

.sc-home-product__body h3 a {
    color: var(--sc-home-text) !important;
    text-decoration: none !important;
}

.sc-home-product__body > strong {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
}

.sc-home-product__body .sciepka-want-button {
    width: 100%;
}

.sc-home-user-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-block: 64px 34px;
}

.sc-home-user-hero h1 {
    font-size: clamp(44px, 7vw, 78px);
}

.sc-home-user-hero p {
    margin: 0;
    color: var(--sc-home-muted);
    font-size: 17px;
}

.sc-home-current {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 36px;
    padding: 22px;
    border: 1px solid var(--sc-home-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(23,23,23,.055);
}

.sc-home-current__image {
    min-height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
    background: #f4f5f7;
    color: #b7bbc4;
    font-size: 66px;
}

.sc-home-current__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.sc-home-current__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 24px 24px 0;
}

.sc-home-current__body h2 {
    margin: 7px 0 24px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
    letter-spacing: -.04em;
}

.sc-home-progress {
    height: 11px;
    overflow: hidden;
    border-radius: 99px;
    background: #eceef1;
}

.sc-home-progress div {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sc-home-accent), var(--sc-home-accent2));
}

.sc-home-current__money {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 10px 0 24px;
    color: var(--sc-home-muted);
    font-size: 12px;
}

.sc-home-current__money strong {
    color: var(--sc-home-text);
    font-weight: 700;
}

.sc-home-current__body .sc-home-primary {
    align-self: flex-start;
}

.sc-home-empty-goal {
    padding: 42px;
    border: 1px solid var(--sc-home-border);
    border-radius: 26px;
    background: #fff;
}

.sc-home-empty-goal h2 {
    margin: 7px 0 8px;
    font-size: 34px;
}

.sc-home-empty-goal p {
    margin: 0 0 20px;
    color: var(--sc-home-muted);
}

.sc-home-feed-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.sc-home-feed-mini {
    padding: 18px;
    border: 1px solid var(--sc-home-border);
    border-radius: 18px;
    background: #fff;
}

.sc-home-feed-mini > p {
    margin: 0 0 14px;
    color: var(--sc-home-muted);
    font-size: 12px;
}

.sc-home-feed-mini > p a {
    color: var(--sc-home-text) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.sc-home-feed-mini__product {
    display: flex;
    align-items: center;
    gap: 13px;
    color: var(--sc-home-text) !important;
    text-decoration: none !important;
}

.sc-home-feed-mini__product img {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    object-fit: contain;
    border-radius: 12px;
    background: #f4f5f7;
}

.sc-home-feed-mini__product strong {
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .sc-home-hero {
        grid-template-columns: 1fr 360px;
        gap: 36px;
    }

    .sc-home-products__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .sc-home-hero {
        min-height: 0;
        grid-template-columns: 1fr;
        padding-block: 52px;
    }

    .sc-home-hero__visual {
        justify-content: flex-start;
    }

    .sc-home-hero__visual .sc-home-product {
        transform: none;
    }

    .sc-home-how__grid,
    .sc-home-feed-preview__grid {
        grid-template-columns: 1fr;
    }

    .sc-home-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sc-home-user-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .sc-home-current {
        grid-template-columns: 1fr;
    }

    .sc-home-current__body {
        padding: 8px 4px 8px;
    }
}

@media (max-width: 520px) {
    .sc-home-products__grid {
        grid-template-columns: 1fr;
    }

    .sc-home-section-heading--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sc-home-hero__actions,
    .sc-home-user-hero__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .sc-home-primary,
    .sc-home-secondary {
        width: 100%;
    }
}

/* ============================================================
   ŚCIEPKA 0.9 — poprawka CTA na stronie głównej
   ============================================================ */

.sc-home {
    --sc-text: var(--sc-home-text);
    --sc-muted: var(--sc-home-muted);
    --sc-border: var(--sc-home-border);
    --sc-accent: var(--sc-home-accent);
    --sc-accent-2: var(--sc-home-accent2);
    --sc-dark: #171717;
}

.sc-home .sciepka-want-button {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0 !important;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        var(--sc-home-accent),
        var(--sc-home-accent2)
    ) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(255,53,87,.20);
}

.sc-home .sciepka-want-button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        var(--sc-home-accent2),
        var(--sc-home-accent)
    ) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.sc-home .sciepka-want-button.is-wanted,
.sc-home .sciepka-want-button.is-have,
.sc-home .sciepka-want-button:disabled {
    background: #171717 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    box-shadow: none;
}


/* ============================================================
   ŚCIEPKA 0.9.1 — STRONA GŁÓWNA / RÓWNE KARTY
   ============================================================ */

/* CHCĘ / ZBIERAM / MAM */
.sc-home-how__grid {
    align-items: stretch;
}

.sc-home-how__grid article {
    height: 100%;
    min-height: 250px;
}

.sc-home-how__grid strong {
    white-space: nowrap;
}

/*
 * Każdy opis rezerwuje tę samą przestrzeń.
 * Dzięki temu CHCĘ / ZBIERAM / MAM są na jednej wysokości.
 */
.sc-home-how__grid p {
    min-height: 72px;
}

/* Karty produktów — każda ma identyczną logikę wysokości */
.sc-home-products__grid {
    align-items: stretch;
}

.sc-home-product {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.sc-home-product__image {
    flex: 0 0 auto;
}

.sc-home-product__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

/*
 * Cena zostaje pod tytułem, a CTA zawsze schodzi na sam dół.
 */
.sc-home-product__body .sciepka-want-button {
    margin-top: auto;
}

/*
 * Zachowujemy równą przestrzeń pod tytułem również wtedy,
 * gdy jeden produkt ma znacznie krótszą nazwę.
 */
.sc-home-product__body h3 {
    min-height: 68px;
}

/* Na małych ekranach nie potrzebujemy sztucznej wysokości opisów. */
@media (max-width: 760px) {
    .sc-home-how__grid p {
        min-height: 0;
    }

    .sc-home-how__grid article {
        min-height: 220px;
    }
}

@media (max-width: 520px) {
    .sc-home-product__body h3 {
        min-height: 0;
    }
}
