/* TSI – Case Studies na stronie głównej */

.tsi-csh-section,
.tsi-csh-section * {
    box-sizing: border-box;
}

html body main#content.pf-nowa-strona-glowna > .tsi-csh-section,
.tsi-csh-section {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 1920px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 110px 0 120px !important;
    overflow: hidden !important;
    color: #111110;
    background: #f7f6f2;
    box-shadow: none !important;
    animation: none !important;
    transform: none !important;
    translate: none !important;
}

.tsi-csh-container {
    width: min(calc(100% - 80px), 1320px);
    margin: 0 auto;
}

.tsi-csh-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: end;
    margin-bottom: 68px;
    padding-bottom: 58px;
    border-bottom: 1px solid rgba(17, 17, 16, .16);
}

.tsi-csh-heading-wrap {
    min-width: 0;
}

.tsi-csh-eyebrow,
.tsi-csh-card-category {
    margin: 0;
    color: #a67333;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tsi-csh-heading {
    max-width: 850px;
    margin: 20px 0 0;
    color: #111110;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(48px, 5.2vw, 82px);
    font-weight: 400;
    letter-spacing: -.042em;
    line-height: .98;
}

.tsi-csh-description,
.tsi-csh-description p {
    margin: 0;
    color: #6f6d68;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.72;
}

.tsi-csh-description p + p {
    margin-top: 14px;
}

.tsi-csh-grid {
    display: grid;
    gap: 72px 30px;
}

.tsi-csh-cols-2 .tsi-csh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tsi-csh-cols-3 .tsi-csh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tsi-csh-card {
    min-width: 0;
}

.tsi-csh-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e5e1d9;
}

.tsi-csh-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.tsi-csh-card:hover .tsi-csh-card-image img {
    transform: scale(1.035);
}

.tsi-csh-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 36px;
    color: #77736d;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(17, 17, 16, .03) 25%, transparent 25%) -16px 0/32px 32px,
        linear-gradient(225deg, rgba(17, 17, 16, .03) 25%, transparent 25%) -16px 0/32px 32px,
        linear-gradient(315deg, rgba(17, 17, 16, .03) 25%, transparent 25%) 0 0/32px 32px,
        linear-gradient(45deg, rgba(17, 17, 16, .03) 25%, transparent 25%) 0 0/32px 32px,
        #e9e6df;
}

.tsi-csh-card-body {
    padding-top: 24px;
}

.tsi-csh-card-category {
    margin-bottom: 15px;
}

.tsi-csh-card-title {
    margin: 0 0 18px;
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.02;
}

.tsi-csh-cols-3 .tsi-csh-card-title {
    font-size: clamp(29px, 2.35vw, 42px);
}

.tsi-csh-card-title a {
    color: #111110;
    text-decoration: none;
}

.tsi-csh-card-client {
    min-height: 48px;
    margin: 0 0 24px;
    color: #6f6d68;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.tsi-csh-card-link,
.tsi-csh-all-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #111110;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.tsi-csh-card-link span,
.tsi-csh-all-link span {
    transition: transform .25s ease;
}

.tsi-csh-card-link:hover span,
.tsi-csh-all-link:hover span {
    transform: translateX(5px);
}

.tsi-csh-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 78px;
    padding-top: 34px;
    border-top: 1px solid rgba(17, 17, 16, .16);
}

.tsi-csh-all-link {
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid #111110;
    transition: color .25s ease, background .25s ease;
}

.tsi-csh-all-link:hover {
    color: #f7f6f2;
    background: #111110;
}

.tsi-csh-empty {
    padding: 32px;
    color: #6f6d68;
    font-family: "Red Hat Display", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid rgba(17, 17, 16, .16);
}

.tsi-csh-empty strong {
    color: #111110;
}

@media (max-width: 1100px) {
    .tsi-csh-cols-3 .tsi-csh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html body main#content.pf-nowa-strona-glowna > .tsi-csh-section,
    .tsi-csh-section {
        padding: 82px 0 92px !important;
    }

    .tsi-csh-container {
        width: calc(100% - 48px);
    }

    .tsi-csh-header {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 52px;
        padding-bottom: 42px;
    }
}

@media (max-width: 680px) {
    html body main#content.pf-nowa-strona-glowna > .tsi-csh-section,
    .tsi-csh-section {
        padding: 66px 0 76px !important;
    }

    .tsi-csh-container {
        width: calc(100% - 32px);
    }

    .tsi-csh-heading {
        font-size: clamp(42px, 13vw, 62px);
    }

    .tsi-csh-description,
    .tsi-csh-description p {
        font-size: 16px;
    }

    .tsi-csh-cols-2 .tsi-csh-grid,
    .tsi-csh-cols-3 .tsi-csh-grid {
        grid-template-columns: 1fr;
        gap: 58px;
    }

    .tsi-csh-card-title,
    .tsi-csh-cols-3 .tsi-csh-card-title {
        font-size: clamp(31px, 9.5vw, 43px);
    }

    .tsi-csh-footer {
        justify-content: stretch;
        margin-top: 58px;
    }

    .tsi-csh-all-link {
        justify-content: space-between;
        width: 100%;
    }
}
