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

.tsi-why {
    --tsi-navy: #061d38;
    --tsi-gold: #b9926b;
    --tsi-cream: #faf7f2;
    position: relative;
    width: 100%;
    min-height: 760px;
    overflow: hidden;
    background: var(--tsi-cream);
    color: var(--tsi-navy);
    font-family: Poppins, Arial, sans-serif;
}

.tsi-why__photo {
    position: absolute;
    z-index: 1;
    inset: 0 0 0 40%;
    overflow: hidden;
    background: #d9c0a4;
}

.tsi-why__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.tsi-why__cream {
    position: absolute;
    z-index: 2;
    inset: 0 auto 0 0;
    width: 57%;
    background: var(--tsi-cream);
    clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.tsi-why__inner {
    position: relative;
    z-index: 3;
    width: min(1200px, calc(100% - 48px));
    min-height: 760px;
    margin: 0 auto;
    padding: 62px 0 48px;
    display: flex;
    flex-direction: column;
}

.tsi-why__copy {
    width: 54%;
    max-width: 610px;
}

.tsi-why__eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 38px;
    color: #9b7b5e;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .18em;
    font-weight: 500;
}

.tsi-why__eyebrow span {
    display: block;
    width: 38px;
    height: 1px;
    background: #b9926b;
}

.tsi-why__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(46px, 4.7vw, 72px);
    line-height: .99;
    letter-spacing: -.035em;
}

.tsi-why__title span,
.tsi-why__title em {
    display: block;
    font-style: normal;
    font-weight: 400;
}

.tsi-why__title em {
    color: #a68b72;
    margin-top: 4px;
}

.tsi-why__desc {
    max-width: 590px;
    margin: 26px 0 0;
    font-size: 17px;
    line-height: 1.55;
    color: #526071;
}

.tsi-why__buttons {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.tsi-why__button {
    min-height: 54px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .1em;
    font-weight: 600;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.tsi-why__button:hover {
    transform: translateY(-1px);
}

.tsi-why__button svg,
.tsi-why__card-arrow svg {
    width: 25px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.tsi-why__button--gold {
    width: 330px;
    background: linear-gradient(90deg, #caa47c, #b28b64);
    color: #fff;
}

.tsi-why__button--outline {
    width: 250px;
    border: 1px solid #25384d;
    color: var(--tsi-navy);
    background: rgba(255,255,255,.18);
}

.tsi-why__stats {
    width: 650px;
    max-width: 56%;
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tsi-why__stat {
    min-height: 186px;
    padding: 0 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.tsi-why__stat + .tsi-why__stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 0;
    width: 1px;
    background: #d2cbc2;
}

.tsi-why__stat-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f2ebe3;
    color: #6f5d4a;
}

.tsi-why__stat-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tsi-why__stat strong {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 400;
    color: var(--tsi-navy);
}

.tsi-why__stat > span {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: .12em;
    color: #69727e;
    text-transform: uppercase;
}

.tsi-why__card {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 16px;
    width: 365px;
    min-height: 245px;
    padding: 28px 86px 26px 34px;
    background: rgba(250,247,242,.95);
    color: var(--tsi-navy);
    text-decoration: none !important;
    box-shadow: 0 14px 40px rgba(15, 30, 45, .08);
    backdrop-filter: blur(2px);
}

.tsi-why__card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    height: 10px;
    margin-bottom: 24px;
}

.tsi-why__card-top i,
.tsi-why__card-top b {
    display: block;
    height: 2px;
    background: #a58a70;
}

.tsi-why__card-top i { width: 44px; }
.tsi-why__card-top b { width: 36px; opacity: .18; }

.tsi-why__card-title {
    display: block;
    max-width: 210px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    line-height: .96;
    letter-spacing: -.025em;
}

.tsi-why__card-desc {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #6d737a;
}

.tsi-why__card-arrow {
    position: absolute;
    right: 28px;
    top: 56px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #b59a7c;
    color: #fff;
}

@media (max-width: 1180px) {
    .tsi-why__inner {
        width: min(100% - 40px, 1100px);
    }
    .tsi-why__copy { width: 56%; }
    .tsi-why__stats { max-width: 58%; width: 600px; }
    .tsi-why__card { right: 10px; }
}

@media (max-width: 960px) {
    .tsi-why {
        min-height: 0;
        overflow: hidden;
        background: var(--tsi-cream);
    }
    .tsi-why__photo {
        position: relative;
        inset: auto;
        width: 100%;
        height: 500px;
        z-index: 1;
        order: 2;
    }
    .tsi-why__photo img {
        object-position: center center;
    }
    .tsi-why__cream { display: none; }
    .tsi-why__inner {
        min-height: 0;
        width: min(100% - 40px, 720px);
        padding: 54px 0 42px;
        display: block;
    }
    .tsi-why__copy {
        width: 100%;
        max-width: none;
    }
    .tsi-why__title {
        font-size: clamp(44px, 8vw, 62px);
    }
    .tsi-why__buttons {
        flex-wrap: wrap;
    }
    .tsi-why__button--gold,
    .tsi-why__button--outline {
        width: auto;
        min-width: 250px;
    }
    .tsi-why__stats {
        width: 100%;
        max-width: none;
        margin-top: 42px;
    }
    .tsi-why__card {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 520px;
        min-height: 210px;
        margin: 30px 0 0 auto;
        background: #fff;
    }
    .tsi-why::after {
        content: '';
        display: block;
        height: 480px;
        background-image: var(--tsidw-mobile-image, none);
    }
}

@media (max-width: 700px) {
    .tsi-why__inner {
        width: calc(100% - 32px);
        padding: 42px 0 32px;
    }
    .tsi-why__eyebrow {
        margin-bottom: 26px;
        font-size: 11px;
        letter-spacing: .14em;
    }
    .tsi-why__title {
        font-size: 45px;
    }
    .tsi-why__desc {
        font-size: 15px;
        line-height: 1.55;
    }
    .tsi-why__buttons {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tsi-why__button--gold,
    .tsi-why__button--outline {
        width: 100%;
        min-width: 0;
    }
    .tsi-why__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .tsi-why__stat {
        min-height: 165px;
        padding: 20px 10px;
        justify-content: center;
        border-bottom: 1px solid #d9d2ca;
    }
    .tsi-why__stat + .tsi-why__stat::before {
        display: none;
    }
    .tsi-why__stat:nth-child(even) {
        border-left: 1px solid #d9d2ca;
    }
    .tsi-why__stat strong {
        font-size: 40px;
    }
    .tsi-why__stat > span {
        font-size: 10px;
    }
    .tsi-why__card {
        padding: 26px 78px 24px 26px;
    }
    .tsi-why__card-title {
        font-size: 30px;
    }
}


/* Mobile layout fix 1.0.1: no artificial blank block below the section. */
@media(max-width:960px){
  .tsi-why::after{content:none!important;display:none!important;height:0!important;background:none!important}
  .tsi-why__card{left:auto!important;right:auto!important;margin:28px 0 0!important;max-width:none!important;width:100%!important}
}
@media(max-width:700px){
  .tsi-why__photo{height:340px!important}
  .tsi-why__inner{padding-bottom:28px!important}
  .tsi-why__card{min-height:0!important;padding:24px 72px 24px 24px!important}
  .tsi-why__card-arrow{left:auto!important;right:18px!important;top:24px!important;width:52px!important;height:52px!important}
  .tsi-why__card-title{max-width:none!important;padding-right:8px!important;font-size:28px!important;line-height:1!important}
  .tsi-why__card-desc{font-size:13px!important;line-height:1.5!important}
}
@media(max-width:420px){
  .tsi-why__photo{height:300px!important}
  .tsi-why__inner{width:calc(100% - 28px)!important;padding-top:36px!important}
  .tsi-why__card{padding:22px 20px 22px!important}
  .tsi-why__card-arrow{position:static!important;margin-top:18px!important}
}


/* Mobile cleanup 1.0.2 – removes white blocks/artifacts around the "Indywidualne podejście" card. */
@media (max-width:700px){
  .tsi-why,
  .tsi-why__inner,
  .tsi-why__card{
    overflow:visible!important;
  }

  .tsi-why::before,
  .tsi-why::after,
  .tsi-why__card::before,
  .tsi-why__card::after,
  .tsi-why__card-top::before,
  .tsi-why__card-top::after{
    content:none!important;
    display:none!important;
  }

  .tsi-why__card{
    position:relative!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    width:100%!important;
    max-width:none!important;
    min-height:0!important;
    margin:26px 0 0!important;
    padding:22px 0 24px!important;
    background:#faf7f2!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border:0!important;
  }

  .tsi-why__card-top{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    width:82px!important;
    height:8px!important;
    margin:0 0 18px!important;
    padding:0!important;
    background:transparent!important;
  }

  .tsi-why__card-top i,
  .tsi-why__card-top b{
    position:static!important;
    display:block!important;
    flex:0 0 auto!important;
    height:1px!important;
    margin:0!important;
    padding:0!important;
    background:#b9926b!important;
    border:0!important;
    box-shadow:none!important;
  }

  .tsi-why__card-top i{width:38px!important}
  .tsi-why__card-top b{width:28px!important;opacity:.22!important}

  .tsi-why__card-title{
    display:block!important;
    max-width:calc(100% - 74px)!important;
    padding:0!important;
    margin:0!important;
    font-size:27px!important;
    line-height:1.02!important;
    background:transparent!important;
  }

  .tsi-why__card-desc{
    display:block!important;
    max-width:100%!important;
    margin:14px 0 0!important;
    padding:0 0 0!important;
    font-size:13px!important;
    line-height:1.48!important;
    background:transparent!important;
  }

  .tsi-why__card-arrow{
    position:absolute!important;
    top:37px!important;
    right:0!important;
    left:auto!important;
    width:50px!important;
    height:50px!important;
    margin:0!important;
    border-radius:50%!important;
    background:#b59a7c!important;
    color:#fff!important;
  }
}

@media (max-width:420px){
  .tsi-why__card{
    padding-left:0!important;
    padding-right:0!important;
  }
  .tsi-why__card-title{
    max-width:calc(100% - 66px)!important;
    font-size:26px!important;
  }
  .tsi-why__card-arrow{
    top:34px!important;
    right:0!important;
  }
}
