/* Strona "Projekty dla grup" (/Home/B2b) */
.b2b {
    --b2b-bg: #f5f4f2;
    --b2b-text: #1e1e1e;
    --b2b-muted: #6b6b6b;
    --b2b-accent: #CD0000;
    color: var(--b2b-text);
    font-family: 'Gilroy', sans-serif;
}

.b2b *,
.b2b *::before,
.b2b *::after {
    letter-spacing: normal;
}

.b2b .container::before,
.b2b .container::after {
    display: none !important;
}

/* ---------- Nagłówek ---------- */
.b2b-hero {
    margin-top: -16px;
    background: var(--b2b-bg);
}

.b2b-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.b2b .b2b-overline {
    margin: 0 0 14px;
    color: var(--b2b-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em !important;
    text-transform: uppercase;
}

.b2b .b2b-overline::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 2px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--b2b-accent);
}

.b2b .b2b-title {
    margin: 0 0 16px;
    color: var(--b2b-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.015em !important;
    text-transform: none;
}

.b2b .b2b-lead {
    max-width: 460px;
    margin: 0 0 26px;
    color: #4a4a4a;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.55;
}

.b2b-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.b2b .b2b-hero-photo {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: #e4e2de;
}

.b2b-hero-photo img,
.b2b-work img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform .5s ease;
}

.b2b .b2b-hero-photo:hover img,
.b2b .b2b-work:hover img {
    transform: scale(1.03);
}

/* ---------- Sekcje ---------- */
.b2b-section {
    padding-top: 56px;
}

.b2b-section:last-child {
    padding-bottom: 64px;
}

.b2b .b2b-h2 {
    margin: 0 0 24px;
    color: var(--b2b-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: none;
}

/* Jak to działa */
.b2b-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2b-step {
    padding: 24px;
    border-radius: 16px;
    background: #f5f4f2;
}

.b2b .b2b-step-title {
    margin: 0 0 8px;
    line-height: 1.25;
    color: var(--b2b-text);
    font-family: 'Gilroy', sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: none;
}

.b2b .b2b-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-step-title .fa {
    flex: none;
    width: 20px;
    color: var(--b2b-accent);
    font-size: 17px;
    text-align: center;
}

.b2b .b2b-step-text {
    margin: 0;
    color: #4a4a4a;
    font-size: 14.5px;
    line-height: 1.5;
}

/* Realizacje */
.b2b-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.b2b .b2b-work {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
    background: #e4e2de;
}

.b2b .b2b-work--wide {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 7;
}

.b2b-work::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
    pointer-events: none;
}

.b2b-work-label {
    position: absolute;
    left: 18px;
    bottom: 14px;
    z-index: 1;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.b2b .b2b-work:focus-visible,
.b2b .b2b-hero-photo:focus-visible {
    outline: 2px solid var(--b2b-accent);
    outline-offset: 3px;
}

/* Kontakt */
.b2b-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 36px;
    border-radius: 14px;
    background: var(--b2b-bg);
}

.b2b-contact .b2b-h2 {
    margin-bottom: 8px;
}

.b2b .b2b-contact-text {
    margin: 0;
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.55;
}

.b2b-contact-list {
    display: grid;
    flex: none;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b2b-contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.b2b-contact-list .fa {
    width: 16px;
    color: var(--b2b-accent);
    text-align: center;
}

.b2b .b2b-contact-list a {
    color: var(--b2b-text);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}

.b2b .b2b-contact-list a:hover {
    color: var(--b2b-accent);
}

/* ---------- Laptop ---------- */
@media (max-width: 1199px) {
    .b2b-hero-inner {
        gap: 32px;
    }

    .b2b .b2b-title {
        font-size: 34px;
    }

    .b2b-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Tablet i telefon ---------- */
@media (max-width: 767px) {
    .b2b-hero {
        margin-top: -12px;
    }

    .b2b-hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 28px;
        padding-bottom: 32px;
    }

    .b2b .b2b-title {
        font-size: 28px;
    }

    .b2b-cta .b-btn {
        flex: 1 1 auto;
    }

    .b2b-section {
        padding-top: 40px;
    }

    .b2b .b2b-h2 {
        font-size: 22px;
    }

    .b2b-steps,
    .b2b-gallery {
        grid-template-columns: 1fr;
    }

    .b2b .b2b-work--wide {
        aspect-ratio: 4 / 3;
    }

    .b2b-contact {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .b2b img {
        transition: none !important;
    }
}
