/*
 * KENDOS – Obsługa BHP SCF
 * Wszystkie selektory są zamknięte w unikalnym prefiksie .kobh-
 * i nie ingerują w moduły .kos-, .khs- ani w motyw.
 */
.kobh-section {
    --kobh-bg: #f8f8f8;
    --kobh-red: #c90000;
    --kobh-yellow: #f4bb00;
    --kobh-image-height: 374px;
    --kobh-bg-image: none;
    position: relative;
    display: block;
    overflow: hidden;
    margin: 0 !important;
    padding: 68px 0 80px;
    background-color: var(--kobh-bg);
    background-image:
        var(--kobh-bg-image),
        radial-gradient(circle at 4% 10%, rgba(0,0,0,.035) 0 1px, transparent 1.2px),
        linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,246,246,.92));
    background-position: center, left top, center;
    background-repeat: no-repeat, repeat, no-repeat;
    background-size: cover, 12px 12px, cover;
    color: #111111;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}
.kobh-section *,
.kobh-section *::before,
.kobh-section *::after {
    box-sizing: border-box;
}
.kobh-section a {
    color: inherit;
}
.kobh-section .kobh-container {
    width: min(calc(100% - 64px), 1400px);
    margin-inline: auto;
}

/* Górna część sekcji */
.kobh-section .kobh-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
}
.kobh-section .kobh-top--with-image {
    grid-template-columns: minmax(0, 1.52fr) minmax(480px, 1fr);
}
.kobh-section .kobh-intro {
    min-width: 0;
    padding-top: 0;
}
.kobh-section .kobh-eyebrow {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0 0 18px;
    color: var(--kobh-red);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}
.kobh-section .kobh-eyebrow span {
    width: 55px;
    height: 2px;
    background: var(--kobh-red);
}
.kobh-section .kobh-title {
    max-width: 880px;
    margin: 0;
    color: #111111;
    font-size: clamp(36px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.028em;
}
.kobh-section .kobh-title > span,
.kobh-section .kobh-title > strong {
    display: inline;
}
.kobh-section .kobh-title strong {
    color: var(--kobh-red);
    font-weight: 700;
}
.kobh-section .kobh-title__line {
    display: block !important;
    margin-top: 4px;
}
.kobh-section .kobh-title-accent {
    display: block;
    width: 62px;
    height: 4px;
    margin-top: 18px;
    background: var(--kobh-yellow);
}
.kobh-section .kobh-description {
    max-width: 780px;
    margin-top: 18px;
    color: #202020;
    font-size: 15px;
    line-height: 1.52;
}
.kobh-section .kobh-description p {
    margin: 0;
}
.kobh-section .kobh-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 30px;
}
.kobh-section .kobh-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 58px;
    padding: 0 20px;
}
.kobh-section .kobh-benefit:first-child {
    padding-left: 0;
}
.kobh-section .kobh-benefit + .kobh-benefit {
    border-left: 1px solid #d8d8d8;
}
.kobh-section .kobh-benefit__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    color: var(--kobh-red);
}
.kobh-section .kobh-icon {
    display: block;
    width: 100%;
    height: 100%;
}
.kobh-section .kobh-benefit strong {
    color: #111111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.38;
}

/* Zdjęcie w prawym górnym rogu — wyświetlane dokładnie tak, jak wgrano. */
.kobh-section .kobh-corner-visual {
    position: relative;
    isolation: isolate;
    min-height: var(--kobh-image-height);
    height: var(--kobh-image-height);
    margin-top: -68px;
    margin-right: calc((100vw - min(calc(100vw - 64px), 1400px)) / -2);
    overflow: hidden;
    background: transparent;
    clip-path: none !important;
}
.kobh-section .kobh-corner-visual__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    background: transparent;
}
.kobh-section .kobh-corner-visual::before,
.kobh-section .kobh-corner-visual::after {
    display: none !important;
    content: none !important;
}

/* Nagłówek nad kafelkami */
.kobh-section .kobh-services-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin: 36px 0 24px;
}
.kobh-section .kobh-services-heading span {
    width: 56px;
    height: 2px;
    background: var(--kobh-yellow);
}
.kobh-section .kobh-services-heading h3 {
    margin: 0;
    color: #111111;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
}

/* Kafelki */
.kobh-section .kobh-services {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 28px;
}
.kobh-section .kobh-card {
    position: relative;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    min-height: 168px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 9px 28px rgba(0,0,0,.08);
    color: #111111;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.kobh-section .kobh-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,.13);
}
.kobh-section .kobh-card__icon {
    position: relative;
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 100%;
    color: #ffffff;
    clip-path: polygon(0 0, 77% 0, 100% 50%, 77% 100%, 0 100%);
}
.kobh-section .kobh-card--red .kobh-card__icon {
    background: linear-gradient(145deg, #e01a1a, #9b0000);
}
.kobh-section .kobh-card--yellow .kobh-card__icon {
    background: linear-gradient(145deg, #ffc800, #e2a900);
}
.kobh-section .kobh-card__icon .kobh-icon {
    width: 44px;
    height: 44px;
}
.kobh-section .kobh-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px 17px 13px 12px;
}
.kobh-section .kobh-card h4 {
    margin: 0;
    color: #111111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.32;
}
.kobh-section .kobh-card h4 em {
    display: inline;
    font-style: normal;
}
.kobh-section .kobh-card--red h4 em,
.kobh-section .kobh-card--red .kobh-card__button {
    color: var(--kobh-red);
}
.kobh-section .kobh-card--yellow h4 em,
.kobh-section .kobh-card--yellow .kobh-card__button {
    color: #d7a000;
}
.kobh-section .kobh-card p {
    margin: 9px 0 12px;
    color: #333333;
    font-size: 12.5px;
    line-height: 1.48;
}
.kobh-section .kobh-card__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #111111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}
.kobh-section .kobh-card__button .kobh-icon {
    width: 18px;
    height: 18px;
}

@media (max-width: 1240px) {
    .kobh-section .kobh-top--with-image {
        grid-template-columns: minmax(0, 1.35fr) minmax(420px, .95fr);
    }
    .kobh-section .kobh-title {
        font-size: clamp(34px, 3.45vw, 45px);
    }
    .kobh-section .kobh-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 0;
    }
    .kobh-section .kobh-benefit:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }
    .kobh-section .kobh-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .kobh-section {
        padding-top: 48px;
    }
    .kobh-section .kobh-container {
        width: min(calc(100% - 32px), 1400px);
    }
    .kobh-section .kobh-top--with-image {
        grid-template-columns: 1fr;
    }
    .kobh-section .kobh-corner-visual {
        order: -1;
        height: min(60vw, 370px);
        min-height: 270px;
        margin: -48px -16px 10px;
        clip-path: none !important;
    }
    .kobh-section .kobh-eyebrow {
        justify-content: center;
    }
    .kobh-section .kobh-title,
    .kobh-section .kobh-description {
        max-width: none;
        text-align: center;
    }
    .kobh-section .kobh-title-accent {
        margin-inline: auto;
    }
}
@media (max-width: 640px) {
    .kobh-section {
        padding-bottom: 58px;
    }
    .kobh-section .kobh-title {
        font-size: clamp(30px, 9vw, 40px);
    }
    .kobh-section .kobh-description {
        font-size: 14px;
    }
    .kobh-section .kobh-benefits,
    .kobh-section .kobh-services {
        grid-template-columns: 1fr;
    }
    .kobh-section .kobh-benefit,
    .kobh-section .kobh-benefit:first-child,
    .kobh-section .kobh-benefit:nth-child(3),
    .kobh-section .kobh-benefit + .kobh-benefit {
        padding: 0 0 14px;
        border-left: 0 !important;
        border-right: 0;
        border-top: 0;
        border-bottom: 1px solid #dedede;
    }
    .kobh-section .kobh-benefit:last-child {
        border-bottom: 0;
    }
    .kobh-section .kobh-card {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 158px;
    }
    .kobh-section .kobh-services-heading {
        gap: 14px;
    }
    .kobh-section .kobh-services-heading span {
        width: 38px;
    }
    .kobh-section .kobh-services-heading h3 {
        font-size: 19px;
    }
}
