/*
 * Fotobudka AI: góra z porównaniem, mozaika stylów i szuflada „Style Fotobudki AI”.
 * Ładowany z widoku site/pages/fotobudka-ai przez @push('styles'); używa zmiennych --ob-* z refresh.css.
 * Niżej: Jak to działa, styl na zamówienie, cennik AI, pytania i wachlarz w sekcji zamykającej.
 *
 * Odstęp sekcji: sekcje na kolorowym tle (Jak to działa, styl na zamówienie) mają --ob-section-y nad i pod treścią
 * w swoim tle; białe sekcje stykające się ze sobą dzielą jeden odstęp.
 */

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

.ob-ai-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: var(--ob-space-7);
    align-items: center;
}

/* Pink stays on the button alone: the badge, the headline and the link are calm ink. */
.ob-ai-hero__badge {
    display: inline-flex;
    margin: 0 0 var(--ob-space-3);
    padding: 5px 11px;
    border: 1px solid var(--ob-line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--ob-ink);
}

.ob-ai-hero__title {
    margin: 0 0 16px;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--ob-ink);
}

.ob-ai-hero__headline {
    max-width: 500px;
    margin: 0 0 var(--ob-space-3);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--ob-ink);
}

.ob-ai-hero__headline span {
    color: var(--ob-ink);
    background: linear-gradient(transparent 68%, var(--ob-pink-badge) 68%, var(--ob-pink-badge) 92%, transparent 92%);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.ob-ai-hero__lead {
    margin: 0 0 var(--ob-space-2);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--ob-ink);
}

.ob-ai-hero__lead span {
    color: var(--ob-pink-dark);
}

.ob-ai-hero__desc {
    max-width: 400px;
    margin: 0 0 var(--ob-space-5);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ob-muted);
}

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

.ai-page a.ob-ai-hero__more:not(.btn):not(.btn-outline):not(.btn-second) {
    padding: 14px 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ob-ink);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .ai-page a.ob-ai-hero__more:not(.btn):not(.btn-outline):not(.btn-second):hover {
        text-decoration: underline;
    }
}

.ob-ai-hero__stage {
    min-width: 0;
}

.ob-ai-hero__frame {
    position: relative;
}

.ob-ai-hero__compare {
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(31, 61, 92, 0.18);
}

.ob-ai-hero .ob-compare__tag--after {
    display: none;
}

.ob-ai-hero__label {
    position: absolute;
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 100px);
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 23, 130, 0.9);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    pointer-events: none;
}

.ob-ai-hero__all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: var(--ob-space-3);
    padding: 14px;
    border: 1px solid var(--ob-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ob-ink);
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

@media (hover: hover) and (pointer: fine) {
    .ob-ai-hero__all:hover {
        border-color: #ffc2dd;
        box-shadow: 0 6px 18px rgba(255, 23, 130, 0.12);
    }
}

.ob-ai-hero__all:focus-visible {
    outline: 2px solid var(--ob-pink-dark);
    outline-offset: 2px;
}

.ob-ai-hero__faces {
    display: flex;
}

.ob-ai-hero__faces img {
    width: 26px;
    height: 26px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 22%;
}

.ob-ai-hero__faces img:first-child {
    margin-left: 0;
}

/* Mozaika stylów */
.ob-ai-styles {
    padding: var(--ob-section-y) 0;
}

.ob-ai-mosaic {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 12px;
}

.ob-ai-mosaic__item {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.ob-ai-mosaic__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.ob-ai-mosaic__tile {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--ob-tile);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ob-ai-mosaic__tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ob-ai-mosaic__tile:hover img {
        transform: scale(1.04);
    }
}

/*
 * ai-styles.js wstawia oryginał nad zdjęciem stylu i odsłania go w jednym kaflu naraz: oryginał wjeżdża z prawej za
 * cienką białą linią (jak suwak przed/po), a po chwili tak samo wraca. Zdjęcie i linia biorą położenie z jednej
 * zmiennej --ob-ai-reveal, więc idą razem także wtedy, gdy ruch się przerwie (najechanie myszą, następny kafel) i
 * zawraca z miejsca, w którym był. Czas ruchu = MOSAIC_WIPE_MS w skrypcie.
 */
@property --ob-ai-reveal {
    syntax: '<percentage>';
    inherits: true;
    initial-value: 100%;
}

.ob-ai-mosaic {
    --ob-ai-wipe: 1.1s;
    --ob-ai-wipe-ease: cubic-bezier(0.65, 0, 0.35, 1);
}

.ob-ai-mosaic__tile {
    --ob-ai-reveal: 100%;
    transition: --ob-ai-reveal var(--ob-ai-wipe) var(--ob-ai-wipe-ease);
}

.ob-ai-mosaic__tile.is-before {
    --ob-ai-reveal: 0%;
}

.ob-ai-mosaic__tile img.ob-ai-mosaic__before {
    position: absolute;
    inset: 0;
    clip-path: inset(0 0 0 var(--ob-ai-reveal));
}

/* Linia podziału, która prowadzi odsłonięcie: widać ją tylko w ruchu. */
.ob-ai-mosaic__tile::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--ob-ai-reveal);
    z-index: 1;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
}

.ob-ai-mosaic__tile.is-before::before {
    animation: ob-ai-line-in var(--ob-ai-wipe) linear both;
}

.ob-ai-mosaic__tile.is-leaving::before {
    animation: ob-ai-line-out var(--ob-ai-wipe) linear both;
}

@keyframes ob-ai-line-in {
    0%,
    100% {
        opacity: 0;
    }

    12%,
    85% {
        opacity: 1;
    }
}

@keyframes ob-ai-line-out {
    0%,
    100% {
        opacity: 0;
    }

    15%,
    88% {
        opacity: 1;
    }
}

.ob-ai-mosaic__tile::after {
    content: 'Oryginał';
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    font-size: 11px;
    font-weight: 700;
    color: var(--ob-ink);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.ob-ai-mosaic__tile.is-before::after {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease 0.45s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.ob-ai-mosaic__tile:focus-visible {
    outline: 3px solid var(--ob-pink-dark);
    outline-offset: 2px;
}

.ob-ai-mosaic__name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #fff;
}

.ob-ai-mosaic__tile--large .ob-ai-mosaic__name {
    padding: 40px 18px 14px;
    font-size: 17px;
}

/* Szuflada */
.ob-ai-drawer__compare {
    width: 100%;
    max-width: 380px;
    margin: 4px auto 0;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(31, 61, 92, 0.14);
}

.ob-ai-drawer__name {
    margin: 16px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--ob-ink);
}

.ob-ai-drawer__tagline {
    margin: 4px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--ob-muted);
}

.ob-ai-drawer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.ob-ai-drawer__tile {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    color: #444;
    cursor: pointer;
}

.ob-ai-drawer__tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 0.82;
    margin-bottom: 5px;
    border-radius: 12px;
    outline: 2.5px solid transparent;
    outline-offset: 2px;
    object-fit: cover;
    object-position: 50% 25%;
}

.ob-ai-drawer__tile[aria-pressed="true"] {
    font-weight: 600;
    color: var(--ob-pink-dark);
}

.ob-ai-drawer__tile[aria-pressed="true"] img {
    outline-color: var(--ob-pink);
}

.ob-ai-drawer__tile:focus-visible img {
    outline-color: var(--ob-pink-dark);
}

.ob-ai-drawer__cta {
    width: 100%;
    text-align: center;
}

@media (max-width: 1100px) {
    .ob-ai-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 180px;
    }
}

@media (max-width: 900px) {
    .ob-ai-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ob-space-4);
    }

    .ob-ai-hero__title {
        font-size: 44px;
    }

    .ob-ai-hero__headline {
        font-size: 38px;
    }

    .ob-ai-hero__stage {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .ob-ai-hero {
        padding-top: var(--ob-space-6);
    }

    .ob-ai-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 170px;
        gap: 10px;
    }

    .ob-ai-hero__headline {
        font-size: 32px;
    }

    .ob-ai-drawer__compare {
        max-width: 250px;
    }

    .ob-ai-drawer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ob-ai-mosaic__tile img,
    .ob-ai-hero__all {
        transition: none;
    }

    @media (hover: hover) and (pointer: fine) {
        .ob-ai-mosaic__tile:hover img {
            transform: none;
        }
    }
}

/* Sekcje pod mozaiką */
.ob-ai-section {
    padding: var(--ob-section-y) 0;
}

.ob-ai-how {
    background: #fafafa;
}

.ob-ai-how__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ob-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.ob-ai-how__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 330px;
    margin-bottom: var(--ob-space-3);
    border-radius: 24px;
    overflow: hidden;
}

.ob-ai-how__visual--photo {
    background: linear-gradient(160deg, #eef3f8, #dfe7ef);
}

.ob-ai-how__visual--screen {
    background: linear-gradient(160deg, #fff0f7, #ffe1ee);
}

.ob-ai-how__visual--print {
    background: linear-gradient(160deg, #fff8e6, #ffefc2);
}

.ob-ai-how__name {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--ob-ink);
}

.ob-ai-how__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--ob-pink);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.ob-ai-how__caption {
    margin: 0;
    font-size: 14px;
    color: var(--ob-muted);
}

/* Krok 1: zdjęcie w ramce wizjera */
.ob-ai-viewfinder {
    position: relative;
    display: block;
    width: 170px;
    height: 208px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ob-ai-viewfinder img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ob-ai-viewfinder::before,
.ob-ai-viewfinder::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border: 3px solid #fff;
}

.ob-ai-viewfinder::before {
    top: 10px;
    left: 10px;
    border-right: 0;
    border-bottom: 0;
    border-radius: 6px 0 0 0;
}

.ob-ai-viewfinder::after {
    right: 10px;
    bottom: 10px;
    border-left: 0;
    border-top: 0;
    border-radius: 0 0 6px 0;
}

.ob-ai-how__flash {
    position: absolute;
    top: 30px;
    right: 70px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 30px 14px rgba(255, 255, 255, 0.9);
}

/* Krok 2: ekran aplikacji w fotobudce */
.ob-ai-kiosk {
    width: 196px;
    height: 290px;
    padding: 7px;
    border-radius: 22px;
    background: #18181b;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.ob-ai-kiosk__screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 16px 0 12px;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.ob-ai-kiosk__title {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #ff1782, #d946ef, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ob-ai-kiosk__sub {
    margin-top: 2px;
    font-size: 7.5px;
    color: #71717a;
}

.ob-ai-kiosk__cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 14px 0 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 22%, #000 78%, transparent 100%);
}

.ob-ai-kiosk__card {
    position: relative;
    flex: none;
    width: 74px;
    height: 96px;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0.45;
    transform: scale(0.9);
}

.ob-ai-kiosk__card--on {
    width: 104px;
    height: 136px;
    opacity: 1;
    transform: none;
    box-shadow: 0 0 0 2.5px #ff1782, 0 10px 22px rgba(255, 23, 130, 0.35);
}

.ob-ai-kiosk__card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

.ob-ai-kiosk__card-name {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 18px 4px 7px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    color: #fff;
}

.ob-ai-kiosk__card-name i {
    display: block;
    margin-top: 2px;
    font-size: 5.5px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
}

.ob-ai-kiosk__dots {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.ob-ai-kiosk__dots b {
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: #d4d4d8;
}

.ob-ai-kiosk__dots b.is-on {
    width: 12px;
    background: #ff1782;
}

.ob-ai-kiosk__go {
    padding: 7px 18px;
    border-radius: 999px;
    background: #ff1782;
    box-shadow: 0 6px 14px rgba(255, 23, 130, 0.35);
    font-size: 9px;
    font-weight: 700;
    color: #fff;
}

/* Paski wydruku (krok 3 i cennik) */
.ob-ai-strip {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 104px;
    padding: 7px 7px 0;
    background: #fff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.ob-ai-strip__frame {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.92;
    overflow: hidden;
    background: #ddd;
}

.ob-ai-strip__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
}

.ob-ai-strip__frame .ob-ai-strip__after {
    clip-path: inset(0 0 0 50%);
}

.ob-ai-strip__frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: #fff;
    transform: translateX(-0.75px);
}

.ob-ai-strip .ob-ai-strip__logo {
    display: block;
    width: auto;
    height: 17px;
    margin: 6px auto 8px;
}

.ob-ai-strip--small {
    gap: 3px;
    width: 64px;
    padding: 4px 4px 0;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.ob-ai-strip--small .ob-ai-strip__logo {
    height: 10px;
    margin: 3px auto 4px;
}

.ob-ai-strip--small .ob-ai-strip__frame::after {
    width: 1px;
}

.ob-ai-how__strip {
    display: block;
}

.ob-ai-how__strip--1 {
    transform: rotate(-7deg) translate(-40px, 4px) scale(0.94);
}

.ob-ai-how__strip--2 {
    position: absolute;
    z-index: 2;
    transform: rotate(6deg) translate(50px, -4px) scale(0.94);
}

/* Cztery możliwości */
.ob-ai-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ob-space-4);
    margin: var(--ob-space-6) 0 0;
    padding: var(--ob-space-5) 0 0;
    border-top: 1px solid var(--ob-line);
    list-style: none;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--ob-muted);
}

.ob-ai-features__icon {
    display: block;
    margin-bottom: var(--ob-space-2);
    color: var(--ob-pink-dark);
}

.ob-ai-features b {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ob-ink);
}

/* Styl na zamówienie */
.ob-ai-custom {
    background: var(--ob-pink-soft);
}

.ob-ai-custom__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ob-space-6);
    align-items: center;
}

.ob-ai-custom__fan {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 520 / 400;
}

.ob-ai-custom__card {
    position: absolute;
    display: block;
    width: 41%;
    aspect-ratio: 214 / 300;
    border: 6px solid #fff;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.ob-ai-custom__card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 30%;
}

.ob-ai-custom__card--left {
    top: 15%;
    left: 0;
    transform: rotate(-8deg);
}

.ob-ai-custom__card--center {
    top: 5%;
    left: 29%;
    z-index: 2;
}

.ob-ai-custom__card--right {
    top: 16.5%;
    left: 58%;
    transform: rotate(7deg);
}

.ob-ai-custom__card--center img {
    height: calc(100% - 44px);
}

.ob-ai-custom__cap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.ob-ai-custom__brand {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0b6bcb;
}

.ob-ai-custom__brand i {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #0b6bcb, #00b3a4);
}

.ob-ai-custom__title {
    margin: 0 0 var(--ob-space-3);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ob-ink);
}

.ob-ai-custom__text p {
    margin: 0 0 var(--ob-space-2);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ob-muted);
}

.ob-ai-custom__text p b {
    font-weight: 600;
    color: var(--ob-ink);
}

.ob-ai-custom__text .ob-ai-custom__note {
    margin-bottom: var(--ob-space-4);
    font-size: 13.5px;
}

/* Cennik AI */
.ob-ai-prices__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ob-space-5);
}

.ob-ai-prices__machine {
    display: flex;
    flex-direction: column;
}

.ob-ai-prices__photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 220px;
    margin-top: var(--ob-space-2);
}

.ob-ai-prices__photo > img {
    position: relative;
    width: auto;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
}

.ob-ai-prices__strip {
    position: absolute;
    top: 0;
    right: 44px;
    transform: rotate(6deg);
}

/* Three photos on the strip of a booth: a narrower strip, so it stays as tall as the booth beside it. */
.ob-ai-prices__strip .ob-ai-strip--small {
    width: 58px;
}

.ob-ai-prices__name {
    margin: var(--ob-space-3) 0 var(--ob-space-2);
    font-size: 19px;
    font-weight: 400;
    color: var(--ob-ink);
}

.ob-ai-prices__name b {
    font-weight: 700;
}

.ob-ai-prices__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ob-ai-prices__row {
    display: flex;
    justify-content: space-between;
    gap: var(--ob-space-2);
    padding: var(--ob-space-2) 0;
    border-top: 1px solid var(--ob-line);
    font-size: 14px;
}

.ob-ai-prices__row b {
    font-size: 16px;
    font-weight: 700;
}

.ob-ai-prices__tbd {
    font-size: 13px;
    color: var(--ob-muted);
}

.ob-ai-prices .btn.ob-ai-prices__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--ob-space-4);
}

.ob-ai-prices__note {
    margin: var(--ob-space-4) 0 0;
    font-size: 13px;
    text-align: center;
    color: var(--ob-muted);
}

.ob-ai-prices__note a {
    font-weight: 600;
    color: var(--ob-pink-dark);
}

/* Pytania stoją pod białym cennikiem, który kończy się odstępem sekcji, więc zaczynają się bez swojego */
.ob-ai-prices + .ob-ai-faq {
    padding-top: 0;
}

/* Pytania kończą się odstępem sekcji, więc sekcja zamykająca pod nimi zaczyna się bez swojego */
.ob-ai-faq + .ob-faces-band {
    padding-top: 0;
}

@media (max-width: 900px) {
    .ob-ai-how__steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ob-space-4);
    }

    .ob-ai-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .ob-ai-custom__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ob-space-4);
    }

    .ob-ai-custom__fan {
        margin: 0 auto;
    }

    .ob-ai-custom__title {
        font-size: 30px;
    }

    .ob-ai-prices__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ob-space-5);
        max-width: 420px;
        margin: 0 auto;
    }
}

/*
 * Styl na zamówienie na wąskim ekranie (wachlarz węższy niż 520 px): podpis ma stałą wielkość, więc środkowa karta
 * zasłaniała podpis prawej („Dziki Zachód”). Prawa karta schodzi niżej, a podpisy są nieco mniejsze.
 */
@media (max-width: 551px) {
    .ob-ai-custom__card--right {
        top: calc(16.5% + 20px);
    }

    .ob-ai-custom__cap {
        padding: 24px 10px 10px;
        font-size: 13px;
    }
}

/* Poniżej 360 px podpis łamie się na dwa wiersze, więc prawa karta schodzi jeszcze niżej. */
@media (max-width: 359px) {
    .ob-ai-custom__card--right {
        top: calc(16.5% + 36px);
    }
}
