/* ── Boxes Content - 3 (Kafelki - treść) ─────────────────────────────────── */

.bc3-block {
    padding: 96px 0;
    background: var(--wp--preset--color--white, #fff);
    overflow: hidden;
}

.bc3-block .container {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* ── Intro ────────────────────────────────────────────────────────────────── */

.bc3-intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 640px;
}

.bc3-intro--center {
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    gap: 8px;
}

.bc3-intro--center .bc3-label-row {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.bc3-intro--center .bc3-label-bar {
    width: 24px;
    height: 4px;
}

.bc3-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bc3-label-bar {
    width: 4px;
    height: 24px;
    flex-shrink: 0;
    background: var(--wp--preset--color--pink-500, #DF006E);
}

.bc3-label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--wp--preset--color--pink-500, #DF006E);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bc3-title {
    margin: 0;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.25;
    color: var(--wp--preset--color--black, #1A1A25);
}

.bc3-desc,
.bc3-desc p {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: var(--wp--preset--color--dark, #2E2E39);
}

.bc3-desc p + p {
    margin-top: 16px;
}

/* ── Grid ─────────────────────────────────────────────────────────────────── */

.bc3-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    height: 100%;
    padding: 32px;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--purple-100);
    border-top: 4px solid transparent;
    border-radius: 16px;
    box-shadow: 2px 2px 8px rgba(26, 26, 37, 0.1);
}

.bc3-card--pink {
    border-top-color: var(--wp--preset--color--pink-500, #DF006E);
}

.bc3-card--purple {
    border-top-color: var(--wp--preset--color--purple-500, #430B8E);
}

.bc3-card--yellow {
    border-top-color: var(--wp--preset--color--yellow, #FFE500);
}

.bc3-card-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bc3-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bc3-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.bc3-card-icon svg {
    width: 20px;
    height: 20px;
}

.bc3-card--pink .bc3-card-icon {
    background: #FFEAF4;
    color: var(--wp--preset--color--pink-500, #DF006E);
}

.bc3-card--purple .bc3-card-icon {
    background: #FAF8FF;
    color: var(--wp--preset--color--purple-500, #430B8E);
}

.bc3-card--yellow .bc3-card-icon {
    background: rgba(255, 229, 0, 0.1);
    color: #b39b00;
}

.bc3-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: var(--wp--preset--color--black, #1A1A25);
}

.bc3-card-desc {
    margin: 0;
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: var(--wp--preset--color--dark, #2E2E39);
}

.bc3-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bc3-card-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.bc3-card-check {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.bc3-card-check svg {
    width: 16px;
    height: 16px;
}

.bc3-card--pink .bc3-card-check {
    color: var(--wp--preset--color--pink-500, #DF006E);
}

.bc3-card--purple .bc3-card-check {
    color: var(--wp--preset--color--purple-500, #430B8E);
}

.bc3-card--yellow .bc3-card-check {
    color: #b39b00;
}

.bc3-card-list-item span:last-child {
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    color: var(--wp--preset--color--dark, #2E2E39);
}

/* ── Card footer ──────────────────────────────────────────────────────────── */

.bc3-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 24px;
}

.bc3-card-footer--end {
    justify-content: flex-end;
}

.bc3-card-logo {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.bc3-card-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    color: var(--wp--preset--color--pink-500, #DF006E);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.bc3-card-link:hover {
    opacity: 0.7;
}

.bc3-card-link-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.bc3-card-link-icon svg {
    width: 16px;
    height: 16px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 991px) {
    .bc3-block {
        padding: 64px 0;
    }

    .bc3-block .container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .bc3-block {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .bc3-intro {
        max-width: 100%;
    }
}

/* ── Swiper: desktop reverts to CSS grid (768px+) ────────────────────────── */

@media (min-width: 768px) {
    .bc3-swiper.swiper {
        overflow: visible;
    }

    .bc3-grid.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
        align-items: stretch;
        transform: none !important;
        will-change: auto;
    }

    .bc3-swiper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        height: auto !important;
    }

    .bc3-pagination {
        display: none;
    }
}

/* ── Swiper: mobile carousel (≤767px) ────────────────────────────────────── */

@media (max-width: 767px) {
    .bc3-swiper.swiper {
        overflow: visible;
        margin: 0 -24px;
        padding: 0 24px;
    }

    .bc3-swiper .swiper-slide {
        height: auto;
    }

    .bc3-card {
        height: 100%;
    }

    .bc3-pagination {
        position: static !important;
        margin-top: 0;
        padding: 24px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bc3-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background-color: rgba(26, 26, 37, 0.2);
        opacity: 1;
        border-radius: 50%;
        transition: transform 0.2s, background-color 0.2s;
    }

    .bc3-pagination .swiper-pagination-bullet-active {
        background-color: var(--wp--preset--color--pink-500, #DF006E);
        transform: scale(1.2);
    }
}

/* ── Dark mode ────────────────────────────────────────────────────────────── */

html[data-theme="dark"] .bc3-block {
    background: var(--wp--preset--color--black, #1A1A25);
}

html[data-theme="dark"] .bc3-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .bc3-desc,
html[data-theme="dark"] .bc3-desc p {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .bc3-card {
    background: var(--wp--preset--color--dark, #2E2E39);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .bc3-card-title {
    color: var(--wp--preset--color--white);
}

html[data-theme="dark"] .bc3-card-desc,
html[data-theme="dark"] .bc3-card-list-item span:last-child {
    color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .bc3-card--pink .bc3-card-icon {
    background: rgba(223, 0, 110, 0.16);
}

html[data-theme="dark"] .bc3-card--purple .bc3-card-icon {
    background: rgba(126, 51, 226, 0.16);
    color: #b98bff;
}

html[data-theme="dark"] .bc3-card--purple .bc3-card-check {
    color: #b98bff;
}

html[data-theme="dark"] .bc3-card--yellow .bc3-card-icon,
html[data-theme="dark"] .bc3-card--yellow .bc3-card-check {
    color: var(--wp--preset--color--yellow, #FFE500);
}

@media (max-width: 767px) {
    html[data-theme="dark"] .bc3-pagination .swiper-pagination-bullet {
        background-color: rgba(255, 255, 255, 0.25);
    }

    html[data-theme="dark"] .bc3-pagination .swiper-pagination-bullet-active {
        background-color: var(--wp--preset--color--yellow, #FFE500);
    }
}
