.clsc {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    padding-left: 64px;
    --clsc-desktop: 4;
    --clsc-tablet: 2;
    --clsc-mobile: 1;
    --clsc-desktop-peek: 104px;
    --clsc-tablet-peek: 72px;
    --clsc-mobile-peek: 0px;
    --clsc-gap: 20px;
    --clsc-image-height: 360px;
}

.clsc-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--clsc-gap);
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
    user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.clsc-track::-webkit-scrollbar {
    display: none;
}

.clsc-card {
    flex: 0 0 calc((100% - var(--clsc-desktop-peek) - ((var(--clsc-desktop) - 1) * var(--clsc-gap))) / var(--clsc-desktop));
    min-width: calc((100% - var(--clsc-desktop-peek) - ((var(--clsc-desktop) - 1) * var(--clsc-gap))) / var(--clsc-desktop));
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.clsc-link {
    display: block;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
}

.clsc-image-wrap {
    border-radius: 10px;
    overflow: hidden;
    height: var(--clsc-image-height);
    margin-bottom: 28px;
}

.clsc .clsc-image-wrap .clsc-image {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}

.clsc-image--placeholder {
    background: #ececec;
}

.clsc-title {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

.clsc-desc {
    font-size: 14px;
    line-height: 1.55;
    color: #ffffff;
}

.clsc-desc p {
    margin: 0;
}

.clsc-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: calc(var(--clsc-image-height) / 2);
    left: 64px;
    right: var(--clsc-desktop-peek);
    transform: translateY(-50%);
    z-index: 40;
    pointer-events: none;
}

.clsc .clsc-btn {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(12, 12, 12, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #101010;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    opacity: 1;
}

.clsc .clsc-btn span {
    display: block;
    line-height: 1;
    transform: translateY(-1px);
}

.clsc .clsc-btn:hover:not(:disabled) {
    border-color: rgba(12, 12, 12, 0.28);
    background: #ffffff;
    color: #000000;
    transform: scale(1.04);
}

.clsc .clsc-btn:disabled {
    opacity: 1;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(12, 12, 12, 0.12);
    color: #9a9a9a;
    cursor: default;
}

.clsc .clsc-btn[hidden] {
    display: none !important;
}

@media (max-width: 1024px) {
    .clsc-controls {
        right: var(--clsc-tablet-peek);
    }

    .clsc-card {
        flex: 0 0 calc((100% - var(--clsc-tablet-peek) - ((var(--clsc-tablet) - 1) * var(--clsc-gap))) / var(--clsc-tablet));
        min-width: calc((100% - var(--clsc-tablet-peek) - ((var(--clsc-tablet) - 1) * var(--clsc-gap))) / var(--clsc-tablet));
    }

    .clsc-title {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .clsc {
        padding-left: 16px;
    }

    .clsc-track {
        padding-right: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        user-select: auto;
    }

    .clsc-card {
        flex: 0 0 calc(100% - max(var(--clsc-mobile-peek), 56px)) !important;
        min-width: calc(100% - max(var(--clsc-mobile-peek), 56px)) !important;
    }

    .clsc-title {
        font-size: 21px;
        white-space: normal;
    }

    .clsc-desc {
        font-size: 15px;
    }

    .clsc-controls {
        display: none;
    }

    .clsc .clsc-btn {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
}

.clsp {
    padding-block: 24px;
}

.clsp-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.clsp-item {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.55fr);
    gap: 40px;
    align-items: start;
    padding-bottom: 28px;
    padding-top: 28px;
    border-top: 1px solid #e6e6e6;
}

.clsp-copy {
    max-width: 420px;
}

.clsp-title {
    margin: 0 0 18px;
    color: #111;
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 500;
}

.clsp-text {
    margin: 0;
    color: #7a7a7a;
    font-size: clamp(13px, 0.95vw, 15px);
    line-height: 1.55;
}

.clsp-labels {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.clsp-pill {
    display: inline-flex;
    align-items: center;
    background: #efefef;
    color: #5f5f5f;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 8px 12px;
    line-height: 1;
}

.clsp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    min-width: 124px;
    height: 38px;
    padding-inline: 16px;
    border-radius: 999px;
    border: 1px solid #111;
    text-decoration: none;
    color: #fff;
    background: #111;
    font-size: 12px;
    letter-spacing: 0.02em;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.clsp-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.clsp-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.clsp-case {
    display: block;
    text-decoration: none;
    color: inherit;
}

.clsp-case-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 2px;
    transform: scale(1);
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), filter 0.36s ease;
    will-change: transform, filter;
}

.clsp-case-image--placeholder {
    background: #ececec;
}

.clsp-case-title {
    display: block;
    margin-top: 12px;
    color: #111;
    font-size: 18px;
    line-height: 1.3;
    transition: opacity 0.24s ease;
}

@media (hover: hover) and (pointer: fine) {
    .clsp-case:hover .clsp-case-image {
        transform: scale(1.035);
        filter: saturate(1.04) contrast(1.03);
    }

    .clsp-case:hover .clsp-case-title {
        opacity: 0.84;
    }
}

.clsp-case--empty .clsp-case-title {
    display: none;
}

@media (max-width: 1024px) {
    .clsp-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .clsp-copy {
        max-width: 760px;
    }

    .clsp-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .clsp-list {
        gap: 46px;
    }

    .clsp-cases {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x mandatory;
        padding-right: 8px;
    }

    .clsp-cases::-webkit-scrollbar {
        display: none;
    }

    .clsp-case {
        flex: 0 0 calc(100% - 64px);
        min-width: calc(100% - 64px);
        scroll-snap-align: start;
    }

    .clsp-case-title {
        margin-top: 10px;
        font-size: 17px;
    }
}
