#our-services .ss-title {
    text-align: center;
}

.myp-scroll-zone {
    position: relative;
}

.myp-sticky-slider {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.myp-slider-header {
    margin-bottom: 72px;
    padding: 0 clamp(24px, 5vw, 72px);

    @media only screen and (max-width: 768px) {
        padding: 0;
        margin-bottom: 24px;
    }
}

.myp-dot {
    color: #F89C1D;
}

.myp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.myp-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 20px;
    border: 1px solid #0D9887;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: #0D9887;
    transition: all .2s;
}

.myp-filter-btn svg {
    stroke: #0D9887;
    fill: none;
    flex-shrink: 0;
    transition: stroke .2s;
}

.myp-filter-btn svg path {
    stroke: #0D9887;
    transition: stroke .2s;
}

/* hover — gray bg, orange icon */
.myp-filter-btn:hover {
    background: #E8E8E8;
    border-color: #E8E8E8;
    color: #2C322D;
}

.myp-filter-btn:hover svg {
    stroke: #2C322D !important;
}

.myp-filter-btn:hover svg path {
    stroke: #2C322D !important;
}

.myp-filter-btn:active {
    background: #0D9887;
    border-color: #0D9887;
    color: #fff;
}

.myp-filter-btn:active svg,
.myp-filter-btn:active svg path {
    stroke: #fff !important;
}

.myp-filter-btn[data-cat="all"]:active {
    background: #0D9887;
    border-color: #0D9887;
}

/* active "all" — orange fill */
.myp-filter-btn.is-active {
    background: #F89C1D !important;
    border-color: #F89C1D !important;
    color: #fff !important;
}

.myp-filter-btn.is-active svg,
.myp-filter-btn.is-active svg path {
    stroke: #fff !important;
}

.myp-filter-btn.is-active:hover {
    background: #F89C1D !important;
    border-color: #F89C1D !important;
    color: #fff !important;
}

.myp-cards-viewport {
    overflow: hidden;
    width: 100%;
}

.myp-cards-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 465px;
    /*transition: transform .55s cubic-bezier(.4, 0, .2, 1);*/
    transition: transform .55s linear;
    will-change: transform;
    padding-left: 0;
}

/* === CARD === */
.myp-card {
    position: relative;
    flex-shrink: 0;
    width: 401px;
    height: 100%;
    margin-left: -86px;
    cursor: pointer;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
    clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
    overflow: hidden;
    border-radius: 0;
}

.myp-card.is-active {
    width: 1150px;
}

.myp-card.is-hidden {
    width: 0 !important;
    opacity: 0;
    pointer-events: none;
    clip-path: none;
    margin-left: 0;
}

.myp-card-inner {
    position: absolute;
    inset: 0;
    display: flex;
}

/* === LEFT: photo === */
.myp-card-photo {
    position: relative;
    flex-shrink: 0;
    width: 401px;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(calc(100% - 300px) 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
}

.myp-card-photo::after {
    content: '';
    width: 93px;
    height: 108px;
    position: absolute;
    top: 0;
    right: 0;
    background: url('../src/images/Rectangle.png') no-repeat;

    @media only screen and (max-width: 768px) {
        height: 74px;
        background-size: contain;
        background-position: 41px top;
    }
}

.myp-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
}

.myp-card:hover .myp-card-bg {
    transform: scale(1.04);
}

.myp-card-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(to top, rgba(0, 0, 0, .85) 35%, rgba(0, 0, 0, .1) 100%);*/
}

.myp-card-icon {
    position: absolute;
    top: 11px;
    right: 16px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;

    @media only screen and (max-width: 768px) {
        top: 0;
        right: 0;
    }
}

.myp-card-icon svg {
    stroke: #7ecfcf;
    fill: none;
}

.myp-card-label {
    position: absolute;
    bottom: 16px;
    left: 52px;
    right: 14px;
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    max-width: 238px;
    z-index: 2;
}

.myp-card-label strong {
    font-weight: 600;
}

.myp-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .35s .08s, transform .35s .08s;
    pointer-events: none;
    min-width: 0;
}

.myp-card.is-active .myp-card-content {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.myp-card-content ul {
    list-style: none;
    margin: 0 0 0 -130px;
    padding: 0 0 0 20px;
    display: block;
}

.myp-card-content li {
    color: #2C322D;
    font-size: 18px;
    line-height: 1.4em;
    text-transform: lowercase;
    padding: 8px 0 8px 18px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.myp-card-content li:nth-child(1) {
    margin-left: 99px;
}

.myp-card-content li:nth-child(2) {
    margin-left: 90px;
}

.myp-card-content li:nth-child(3) {
    margin-left: 81px;
}

.myp-card-content li:nth-child(4) {
    margin-left: 72px;
}

.myp-card-content li:nth-child(5) {
    margin-left: 63px;
}

.myp-card-content li:nth-child(6) {
    margin-left: 54px;
}

.myp-card-content li:nth-child(7) {
    margin-left: 45px;
}

.myp-card-content li:nth-child(8) {
    margin-left: 36px;
}

.myp-card-content li:nth-child(9) {
    margin-left: 27px;
}

.myp-card-content li:nth-child(10) {
    margin-left: 18px;
}

.myp-card-content li:nth-child(11) {
    margin-left: 9px;
}

.myp-card-content li:nth-child(n+12) {
    margin-left: 0;
}

.myp-card-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid #F89C1D;
}


.myp-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: .45;
    transition: opacity .4s;
    pointer-events: none;
}

.myp-scroll-hint span {
    font-size: 11px;
    color: #555;
    letter-spacing: .06em;
}

.myp-scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    animation: myp-bob .9s ease-in-out infinite alternate;
}

@keyframes myp-bob {
    from {
        transform: rotate(45deg) translate(-2px, -2px);
    }
    to {
        transform: rotate(45deg) translate(2px, 2px);
    }
}

@media (max-width: 768px) {
    .myp-cards-row {
        height: 320px;
        padding-left: 40px;
    }

    .myp-card {
        width: 200px;
        margin-left: -40px;
        clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    }

    .myp-card.is-active {
        width: clamp(280px, 80vw, 500px);
    }

    .myp-card-photo {
        width: 200px;
        clip-path: polygon(calc(100% - 150px) 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
    }

    .myp-card-content ul::before {
        width: 40px;
    }

    .myp-scroll-zone {
        height: auto !important;
        padding: 0 24px;
        overflow: hidden;
    }

    .myp-sticky-slider {
        top: 0;
        height: auto;
    }
}

@media (max-width: 767px) {
    .myp-cards-viewport {
        overflow: visible;
    }

    .myp-cards-row {
        flex-direction: column;
        height: auto;
        gap: 16px;
        transform: none !important;
        padding-left: 0;
    }

    .myp-card {
        width: 100% !important;
        height: 230px;
        margin-left: 0 !important;
        clip-path: none;
        border-radius: 10px;
        overflow: hidden;
        transition: height .45s cubic-bezier(.4, 0, .2, 1);
    }

    .myp-card.is-active {
        height: auto;
        min-height: 230px;
    }

    .myp-card.is-hidden {
        height: 0;
    }

    .myp-card-inner {
        position: relative;
        flex-direction: column;
    }

    .myp-card-photo {
        width: 100%;
        height: 230px;
        flex-shrink: 0;
        clip-path: none;
        border-radius: 8px;
    }

    .myp-card-label {
        font-size: 34px;
        left: 24px;
        bottom: 12px;
    }

    .myp-card-content {
        position: relative;
        opacity: 0;
        max-height: 0;
        transform: none;
        transition: opacity .3s, max-height .4s cubic-bezier(.4, 0, .2, 1);
        padding: 16px 16px 20px;
        overflow: hidden;
    }

    .myp-card.is-active .myp-card-content {
        opacity: 1;
        max-height: 600px;
    }

    .myp-card-content li:nth-child(n) {
        margin-left: 0;
    }

    .myp-card-content ul {
        padding: 0;
        margin-left: 0;
    }

    .myp-card-content li {
        white-space: normal;
        padding: 5px 0 5px 18px;
    }

    .myp-progress-bar,
    .myp-scroll-hint {
        display: none;
    }

    .myp-filters.is-pre-filters,
    .myp-filters.is-intro-done {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .myp-card.is-pre-intro,
    .myp-card.is-intro-done {
        opacity: 1;
        transform: none;
        transition: height .45s cubic-bezier(.4, 0, .2, 1);
    }

    .myp-card-bg--desktop {
        display: none;
    }

    .myp-card-bg--mobile {
        display: block !important;
    }
}

.myp-card-bg--mobile {
    display: none;
}

/* === INTRO ANIMATION === */
.myp-card.is-pre-intro {
    opacity: 0;
    transform: translateX(120px);
    transition: opacity .5s ease,
    transform .5s cubic-bezier(.2, .8, .3, 1),
    width .5s cubic-bezier(.4, 0, .2, 1);
}

.myp-card.is-intro-done {
    opacity: 1;
    transform: translateX(0);
    transition: opacity .5s ease,
    transform .5s cubic-bezier(.2, .8, .3, 1),
    width .5s cubic-bezier(.4, 0, .2, 1);
}

/* === FILTERS INTRO === */
.myp-filters.is-pre-filters {
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .3, 1);
}

.myp-filters.is-intro-done {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .3, 1);
}
