.tsi-pa-section {
    --tsi-pa-bg: #f4f2ee;
    --tsi-pa-surface: #ffffff;
    --tsi-pa-surface-active: #111111;
    --tsi-pa-text: #151515;
    --tsi-pa-muted: #6b6862;
    --tsi-pa-border: rgba(17, 17, 17, 0.14);
    --tsi-pa-accent: #aa7a3d;
    --tsi-pa-active-text: #ffffff;
    overflow: hidden;
}

.tsi-pa-section.section-color-jasny {
    --tsi-pa-bg: #ffffff;
    --tsi-pa-surface: #f5f3ef;
}

.tsi-pa-section.section-color-szary {
    --tsi-pa-bg: #efede8;
    --tsi-pa-surface: #ffffff;
}

.tsi-pa-section.section-color-ciemny {
    --tsi-pa-bg: #0d0d0d;
    --tsi-pa-surface: #171717;
    --tsi-pa-surface-active: #f2efe9;
    --tsi-pa-text: #f7f5f1;
    --tsi-pa-muted: #aaa59d;
    --tsi-pa-border: rgba(255, 255, 255, 0.16);
    --tsi-pa-accent: #d2a267;
    --tsi-pa-active-text: #111111;
}

.tsi-pa-section {
    background: var(--tsi-pa-bg);
    color: var(--tsi-pa-text);
}

.tsi-pa-container {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: clamp(72px, 8vw, 132px) clamp(24px, 6vw, 108px);
    box-sizing: border-box;
}

.tsi-pa-header {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(36px, 7vw, 120px);
    align-items: start;
    margin-bottom: clamp(48px, 7vw, 92px);
}

.tsi-pa-title-block,
.tsi-pa-intro-block {
    min-width: 0;
}

.tsi-pa-eyebrow,
section.tsi-pa-section .tsi-pa-eyebrow {
    margin: 0 0 13px;
    color: var(--tsi-pa-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.19em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tsi-pa-heading,
section.tsi-pa-section .tsi-pa-heading {
    margin: 0;
    color: var(--tsi-pa-text);
    font-size: clamp(40px, 5vw, 76px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.tsi-pa-lead,
section.tsi-pa-section .tsi-pa-lead {
    max-width: 850px;
    margin: 0 0 22px;
    color: var(--tsi-pa-text);
    font-size: clamp(25px, 3vw, 43px);
    font-weight: 450;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.tsi-pa-intro,
section.tsi-pa-section .tsi-pa-intro {
    max-width: 720px;
    color: var(--tsi-pa-muted);
    font-size: 17px;
    line-height: 1.75;
}

.tsi-pa-intro p,
section.tsi-pa-section .tsi-pa-intro p {
    margin: 0;
    color: inherit;
}

.tsi-pa-process {
    display: grid;
    grid-template-columns: minmax(330px, 0.82fr) minmax(0, 1.18fr);
    border-top: 1px solid var(--tsi-pa-border);
    border-bottom: 1px solid var(--tsi-pa-border);
}

.tsi-pa-item {
    display: contents;
}

.tsi-pa-trigger {
    position: relative;
    grid-column: 1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    gap: 18px;
    align-items: center;
    width: 100%;
    min-height: 124px;
    padding: 25px 26px 25px 0;
    border: 0;
    border-bottom: 1px solid var(--tsi-pa-border);
    background: transparent;
    color: var(--tsi-pa-text);
    text-align: left;
    cursor: pointer;
    appearance: none;
    transition: background-color .28s ease, color .28s ease, padding .28s ease;
}

.tsi-pa-item:last-child .tsi-pa-trigger {
    border-bottom: 0;
}

.tsi-pa-trigger:hover,
.tsi-pa-trigger:focus-visible {
    padding-left: 18px;
}

.tsi-pa-trigger:focus-visible {
    outline: 2px solid var(--tsi-pa-accent);
    outline-offset: -2px;
}

.tsi-pa-item.is-active .tsi-pa-trigger {
    padding-left: 24px;
    background: var(--tsi-pa-surface-active);
    color: var(--tsi-pa-active-text);
}

.tsi-pa-trigger-number {
    align-self: start;
    padding-top: 4px;
    color: var(--tsi-pa-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1;
}

.tsi-pa-trigger-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.tsi-pa-trigger-subtitle {
    color: var(--tsi-pa-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.35;
    text-transform: uppercase;
    transition: color .28s ease;
}

.tsi-pa-item.is-active .tsi-pa-trigger-subtitle {
    color: currentColor;
    opacity: .62;
}

.tsi-pa-trigger-title {
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.16;
}

.tsi-pa-trigger-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid currentColor;
    border-radius: 50%;
    opacity: .55;
    transition: transform .28s ease, opacity .28s ease;
}

.tsi-pa-trigger-icon svg {
    width: 17px;
    height: 17px;
}

.tsi-pa-item.is-active .tsi-pa-trigger-icon {
    transform: rotate(90deg);
    opacity: 1;
}

.tsi-pa-panel {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 4;
    min-height: 496px;
    padding: clamp(38px, 5vw, 78px);
    border-left: 1px solid var(--tsi-pa-border);
    background: var(--tsi-pa-surface);
    box-sizing: border-box;
    overflow: hidden;
}

.tsi-pa-panel[hidden] {
    display: none !important;
}

.tsi-pa-panel-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.tsi-pa-panel-watermark {
    position: absolute;
    right: -0.06em;
    bottom: -.26em;
    z-index: -1;
    color: var(--tsi-pa-text);
    font-size: clamp(160px, 24vw, 390px);
    font-weight: 700;
    letter-spacing: -.09em;
    line-height: .78;
    opacity: .035;
    user-select: none;
    pointer-events: none;
}

.tsi-pa-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.tsi-pa-panel-kicker,
section.tsi-pa-section .tsi-pa-panel-kicker {
    margin: 0 0 12px;
    color: var(--tsi-pa-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tsi-pa-panel-title,
section.tsi-pa-section .tsi-pa-panel-title {
    max-width: 750px;
    margin: 0;
    color: var(--tsi-pa-text);
    font-size: clamp(30px, 3.6vw, 54px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.03;
}

.tsi-pa-progress {
    display: inline-flex;
    align-items: baseline;
    flex: 0 0 auto;
    color: var(--tsi-pa-muted);
    font-size: 13px;
    line-height: 1;
}

.tsi-pa-progress strong {
    color: var(--tsi-pa-text);
    font-size: 30px;
    font-weight: 500;
}

.tsi-pa-panel-copy,
section.tsi-pa-section .tsi-pa-panel-copy {
    max-width: 780px;
    color: var(--tsi-pa-muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.82;
}

.tsi-pa-panel-copy p,
section.tsi-pa-section .tsi-pa-panel-copy p {
    margin: 0 0 1.1em;
    color: inherit;
}

.tsi-pa-panel-copy p:last-child,
section.tsi-pa-section .tsi-pa-panel-copy p:last-child {
    margin-bottom: 0;
}

.tsi-pa-panel.is-active .tsi-pa-panel-inner {
    animation: tsi-pa-panel-in .42s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes tsi-pa-panel-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .tsi-pa-header {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tsi-pa-process {
        display: block;
        border-bottom: 0;
    }

    .tsi-pa-item {
        display: block;
        border-bottom: 1px solid var(--tsi-pa-border);
    }

    .tsi-pa-trigger {
        display: grid;
        min-height: 104px;
        padding: 20px 0;
        border-bottom: 0;
    }

    .tsi-pa-trigger:hover,
    .tsi-pa-trigger:focus-visible,
    .tsi-pa-item.is-active .tsi-pa-trigger {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tsi-pa-panel {
        min-height: 0;
        padding: 34px 18px 42px;
        border-top: 1px solid var(--tsi-pa-border);
        border-left: 0;
    }

    .tsi-pa-panel-head {
        margin-bottom: 28px;
    }

    .tsi-pa-panel-watermark {
        right: -.02em;
        bottom: -.14em;
        font-size: clamp(130px, 48vw, 260px);
    }
}

@media (max-width: 600px) {
    .tsi-pa-container {
        padding: 64px 18px;
    }

    .tsi-pa-header {
        margin-bottom: 44px;
    }

    .tsi-pa-heading,
    section.tsi-pa-section .tsi-pa-heading {
        font-size: 42px;
    }

    .tsi-pa-lead,
    section.tsi-pa-section .tsi-pa-lead {
        font-size: 27px;
    }

    .tsi-pa-trigger {
        grid-template-columns: 34px minmax(0, 1fr) 32px;
        gap: 12px;
    }

    .tsi-pa-trigger-title {
        font-size: 19px;
    }

    .tsi-pa-trigger-icon {
        width: 32px;
        height: 32px;
    }

    .tsi-pa-panel-head {
        gap: 15px;
    }

    .tsi-pa-progress strong {
        font-size: 24px;
    }

    .tsi-pa-panel-title,
    section.tsi-pa-section .tsi-pa-panel-title {
        font-size: 32px;
    }

    .tsi-pa-panel-copy,
    section.tsi-pa-section .tsi-pa-panel-copy {
        font-size: 16px;
        line-height: 1.7;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tsi-pa-trigger,
    .tsi-pa-trigger-icon,
    .tsi-pa-panel.is-active .tsi-pa-panel-inner {
        transition: none !important;
        animation: none !important;
    }
}
