/*
 * Strona fotobudki odświeżenia: góra z ceną, cechy wokół zdjęcia, „Co zyskasz”, opis i inne urządzenia.
 * Ładowany z widoku site/machine przez @push('styles'); karty pakietów i dodatki są we wspólnym blocks.css; używa zmiennych --ob-* z refresh.css.
 */

/*
 * Odstęp sekcji: cechy, „Co zyskasz” i ceny mają --ob-section-y tylko nad treścią, a dodatki pod nimi (blocks.css)
 * nad i pod. Opis, sekcja z twarzami i inne urządzenia kończą się tym odstępem i zaczynają bez swojego, więc między
 * sekcjami zawsze stoi jeden odstęp.
 */

/* Góra: odstęp liczony spod menu, z miejscem na 16 px wystającego logo */
.ob-machine-hero {
    padding: calc(var(--ob-space-6) + 16px) 0 0;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.ob-machine-hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--ob-space-4);
    align-items: center;
}

.ob-machine-hero__title {
    margin: 0 0 var(--ob-space-2);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ob-ink);
}

.ob-machine-hero__title .light {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 0;
}

.ob-machine-hero__lead {
    max-width: 470px;
    margin: 0 0 var(--ob-space-3);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ob-muted);
}

.ob-machine-hero__price {
    margin: 0 0 var(--ob-space-4);
    font-size: 15px;
    color: var(--ob-muted);
}

/* Cena w swoim wierszu, „za 2 godziny · nielimitowane wydruki” spokojnie pod nią. */
.ob-machine-hero__price b {
    display: block;
    margin-bottom: 2px;
    line-height: 1.2;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ob-ink);
}

.ob-machine-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ob-space-1) var(--ob-space-2);
}

.ob-machine-hero__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 var(--ob-space-2);
    font-weight: 600;
    color: var(--ob-pink-dark);
    text-decoration: none;
}

.ob-machine-hero .ob-trust {
    margin-top: var(--ob-space-3);
}

/*
 * Jasne urządzenia (biała Klasyczna) ginęły na białym tle: zdjęcie stoi na miękkim panelu w kolorach marki
 * (ten sam co na kartach fotobudek), a krawędź urządzenia ma delikatny obrys. Bez cienia pod spodem, bo urządzenie
 * wyglądało, jakby lewitowało.
 */
.ob-machine-hero__photo {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.ob-machine-hero__photo::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: min(100%, 440px);
    border-radius: 32px;
    background: var(--ob-machine-stage);
    transform: translateX(-50%);
}

.ob-machine-hero__photo img {
    width: auto;
    max-width: 100%;
    height: 470px;
    object-fit: contain;
    filter: var(--ob-machine-edge);
}

/* Cechy wokół zdjęcia */
.ob-features {
    padding: var(--ob-section-y) 0 0;
}

.ob-features__grid {
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    gap: var(--ob-space-4);
    align-items: center;
}

.ob-features__col {
    display: grid;
    gap: var(--ob-space-5);
}

.ob-features__col--left {
    text-align: right;
}

.ob-features__item b {
    display: block;
    margin-bottom: var(--ob-space-1);
    font-size: 16px;
    font-weight: 600;
}

.ob-features__item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ob-muted);
}

/* Ten sam obrys co na górze strony, bez panelu, żeby jasne urządzenie nie znikało na białym tle. */
.ob-features__photo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 380px;
    margin: 0 auto;
    object-fit: contain;
    filter: var(--ob-machine-edge);
}

/* Co zyskasz; lista stoi od razu pod odstępem nagłówka sekcji */
.ob-machine-gain {
    padding: var(--ob-section-y) 0 0;
}

.ob-machine-gain__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ob-space-3) var(--ob-space-4);
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.ob-machine-gain__list li {
    display: flex;
    gap: var(--ob-space-2);
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}

.ob-machine-gain__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff0f7;
    color: var(--ob-pink-dark);
}

.ob-machine-gain__icon svg {
    width: 22px;
    height: 22px;
}

/* Ceny pakietów; karty stoją od razu pod odstępem nagłówka sekcji */
.ob-machine-prices {
    padding: var(--ob-section-y) 0 0;
    scroll-margin-top: 28px;
}

.ob-machine-prices .ob-packages {
    margin-top: 0;
}

/*
 * Opis stoi pod dodatkami, które kończą się odstępem sekcji, a sam kończy się odstępem sekcji, więc sekcja z twarzami
 * pod nim zaczyna się bez swojego
 */
.ob-machine-desc {
    padding: 0 0 var(--ob-section-y);
}

.ob-machine-desc__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ob-space-6);
    align-items: center;
}

.ob-machine-desc + .ob-faces-band {
    padding-top: 0;
}

.ob-machine-desc h2 {
    margin: 0 0 var(--ob-space-2);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.ob-machine-desc p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ob-muted);
}

.ob-machine-desc img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
}

/* Inne urządzenia; sekcja z twarzami nad nimi kończy się odstępem sekcji */
.ob-machine-others {
    padding: var(--ob-section-y) 0;
}

.ob-faces-band + .ob-machine-others {
    padding-top: 0;
}

.ob-machine-others__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ob-space-4);
    max-width: 900px;
    margin: 0 auto;
}

.ob-machine-others__item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--ob-space-3);
    align-items: center;
}

.ob-machine-others__img img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 200px;
    margin: 0 auto;
    object-fit: contain;
}

.ob-machine-others__name {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.ob-machine-others__name .light {
    font-weight: 400;
}

.ob-machine-others__meta {
    margin: 4px 0 var(--ob-space-2);
    font-size: 14px;
    color: var(--ob-muted);
}

.ob-machine-others__item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--ob-pink-dark);
    text-decoration: none;
}

@media (max-width: 1190px) {
    .ob-machine-hero__title {
        font-size: 52px;
    }
}

@media (max-width: 900px) {
    .ob-machine-desc__inner {
        grid-template-columns: 1fr;
        gap: var(--ob-space-4);
    }
}

/* Telefon */
@media (max-width: 767px) {
    .ob-machine-hero {
        padding-top: var(--ob-space-4);
    }

    .ob-machine-hero__inner {
        grid-template-columns: 1fr;
        gap: var(--ob-space-2);
        text-align: center;
    }

    .ob-machine-hero__title {
        font-size: 40px;
    }

    .ob-machine-hero__title .light {
        font-size: 20px;
    }

    .ob-machine-hero__lead {
        margin: 0 auto var(--ob-space-3);
        font-size: 16px;
    }

    .ob-machine-hero__actions,
    .ob-machine-hero .ob-trust {
        justify-content: center;
    }

    .ob-machine-hero__photo {
        padding: 28px 0;
    }

    .ob-machine-hero__photo::before {
        width: min(100%, 320px);
        border-radius: 24px;
    }

    .ob-machine-hero__photo img {
        height: 300px;
    }

    .ob-features__grid {
        grid-template-columns: 1fr;
        gap: var(--ob-space-4);
    }

    .ob-features__col {
        gap: var(--ob-space-4);
    }

    .ob-features__col--left {
        text-align: left;
    }

    .ob-features__photo {
        display: none;
    }

    .ob-machine-gain__list {
        grid-template-columns: 1fr;
        gap: var(--ob-space-2);
    }

    .ob-machine-prices {
        scroll-margin-top: 10px;
    }

    .ob-machine-desc h2 {
        font-size: 26px;
    }

    .ob-machine-others__grid {
        grid-template-columns: 1fr;
    }

    .ob-machine-others__item {
        grid-template-columns: 110px 1fr;
        gap: var(--ob-space-2);
    }

    .ob-machine-others__img img {
        height: 140px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.ob-machine-prices) {
        scroll-behavior: smooth;
    }
}
