.services-page {
    color: #0a1c4a;
    background: #f3f4f6;
}

.services-hero {
    padding: 60px 0 120px;
    background: #f3f4f6;
}

.services-breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 60px;
    color: #000;
    font-family: "Inter Tight", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.services-breadcrumbs a {
    color: inherit;
    opacity: 0.5;
    text-decoration: none;
}

.services-breadcrumbs span:last-child {
    opacity: 1;
}

.services-hero__heading {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

.services-hero__heading h1 {
    margin: 0;
    flex: 0 0 auto;
    color: #0a1c4a;
    font-family: "Inter Tight", sans-serif;
    font-size: 50px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
}

.services-hero__heading p {
    margin: 0;
    max-width: 650px;
    color: #363636;
    font-family: "Inter Tight", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    align-content: flex-start;
}

.services-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
    box-sizing: border-box;
    width: calc((100% - 60px) / 3);
    min-height: 392px;
    padding: 30px;
    isolation: isolate;
    overflow: hidden;
    color: #0a1c4a;
    background: #fff;
    backdrop-filter: blur(20.2px);
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.28s ease, color 0.28s ease;
}

.services-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 40px;
    height: 40px;
    pointer-events: none;
    background: #f3f4f6;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.services-card__top {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    z-index: 0;
}

.services-card__icon {
    display: block;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    line-height: 0;
}

.services-card__icon svg {
    display: block;
    width: 50px;
    height: 50px;
    transition: filter 0.28s ease;
}

.services-card__icon img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: filter 0.28s ease;
}

.services-card h2 {
    margin: 0;
    color: inherit;
    font-family: "Inter Tight", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.02em;
    transition: color 0.28s ease;
}

.services-card__text {
    margin: 0;
    flex: 1 1 auto;
    color: #0a1c4a;
    font-family: "Inter Tight", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    opacity: 0.6;
    transition: color 0.28s ease, opacity 0.28s ease;
}

.services-card__more {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    z-index: 3;
    width: fit-content;
    margin-top: auto;
    color: #0a1c4a;
    font-family: "Inter Tight", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 0.985;
    letter-spacing: -0.02em;
    text-decoration: none;
    opacity: 0.6;
    transition: color 0.28s ease, opacity 0.28s ease;
}

.services-card__arrow {
    box-sizing: border-box;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 1000px;
    transition: border-color 0.28s ease, background-color 0.28s ease;
}

.services-card__arrow::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5.5px 0 5.5px 8px;
    border-color: transparent transparent transparent #000;
    transition: border-color 0.28s ease;
}

.services-card:hover {
    color: #fff;
    background: #0a1c4a;
}

.services-card:hover .services-card__icon svg,
.services-card:hover .services-card__icon img {
    /* → orange */
    filter: brightness(0) saturate(100%) invert(64%) sepia(55%) saturate(1200%) hue-rotate(346deg) brightness(101%) contrast(94%);
}

.services-card:hover h2 {
    color: #fff;
}

.services-card:hover .services-card__text {
    color: #fff;
    opacity: 0.72;
}

.services-card:hover .services-card__more {
    color: #fff;
    opacity: 1;
}

.services-card:hover .services-card__arrow {
    border-color: rgba(255, 255, 255, 0.45);
}

.services-card:hover .services-card__arrow::before {
    border-color: transparent transparent transparent #fff;
}

.services-process {
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
}

.services-process__title {
    margin: 0 0 80px;
    color: #0a1c4a;
    font-family: "Inter Tight", sans-serif;
    font-size: 46px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.02em;
}

.services-process__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: max(32px, calc((100vw - 1440px) / 2));
    padding-right: 40px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 8px;
}

.services-step {
    position: relative;
    flex: 0 0 310px;
    width: 310px;
    overflow: visible;
    scroll-snap-align: start;
}

.services-step__inner {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    box-sizing: border-box;
    min-height: 340px;
    padding: 30px;
    background: #f3f4f6;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}

.services-step__num {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    color: #fff;
    font-family: "Inter Tight", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
    background: #ed912c;
}

/* Стрелка из макета — SVG, сдвинута вправо и чуть шире */
.services-step__connector {
    position: absolute;
    top: 50px;
    left: 105px;
    z-index: 5;
    width: 250px;
    height: 17px;
    pointer-events: none;
    background: url("../svg/services/arrow-step.svg") left center / 100% 100% no-repeat;
}

.services-step h3 {
    margin: 0;
    max-width: 250px;
    color: #0a1c4a;
    font-family: "Inter Tight", sans-serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.services-step p {
    margin: 0;
    max-width: 250px;
    color: #0a1c4a;
    font-family: "Inter Tight", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    opacity: 0.6;
}

@media (max-width: 1200px) {
    .services-card {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 820px) {
    .services-hero {
        padding: 28px 0 48px;
    }

    .services-breadcrumbs {
        margin-bottom: 28px;
        font-size: 14px;
    }

    .services-breadcrumbs a {
        color: #9aa2b3;
        opacity: 1;
    }

    .services-breadcrumbs span:last-child {
        color: #0a1c4a;
    }

    .services-hero__heading {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .services-hero__heading h1 {
        font-size: 32px;
        letter-spacing: 0.02em;
    }

    .services-hero__heading p {
        max-width: none;
        font-size: 15px;
        line-height: 1.35;
    }

    .services-grid {
        flex-direction: column;
        gap: 16px;
    }

    .services-card {
        width: 100%;
        min-height: 0;
        gap: 28px;
        padding: 24px 22px;
    }

    .services-card__top {
        gap: 18px;
    }

    .services-card h2 {
        font-size: 22px;
    }

    .services-process {
        padding: 48px 0;
        overflow: visible;
    }

    .services-process__title {
        margin-bottom: 28px;
        font-size: 28px;
    }

    .services-process__track {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        padding-left: 15px;
        padding-right: 20px;
    }

    .services-step {
        flex: 0 0 280px;
        width: 280px;
    }

    .services-step__inner {
        min-height: 300px;
        padding: 24px 20px;
        gap: 24px;
    }

    .services-step__num {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .services-step__connector {
        top: 40px;
        left: 85px;
        width: 250px;
        height: 15px;
    }

    .services-step h3 {
        font-size: 22px;
    }
}

@media (hover: none) {
    .services-card:active {
        color: #fff;
        background: #0a1c4a;
    }

    .services-card:active .services-card__icon svg,
    .services-card:active .services-card__icon img {
        filter: brightness(0) saturate(100%) invert(64%) sepia(55%) saturate(1200%) hue-rotate(346deg) brightness(101%) contrast(94%);
    }

    .services-card:active .services-card__text,
    .services-card:active .services-card__more {
        color: #fff;
        opacity: 1;
    }

    .services-card:active .services-card__arrow {
        border-color: rgba(255, 255, 255, 0.45);
    }

    .services-card:active .services-card__arrow::before {
        border-color: transparent transparent transparent #fff;
    }
}
