.services-page {
    isolation: isolate;
    overflow-x: clip;
    overflow-y: visible;
    background:
        linear-gradient(180deg, rgba(0, 167, 160, 0.06), transparent 18%),
        linear-gradient(180deg, transparent 0%, rgba(198, 31, 61, 0.06) 58%, transparent 100%);
}

[data-hero-copy],
[data-hero-cta] {
    will-change: transform, opacity;
}

.services-page:not(.is-services-ready) [data-hero-copy],
.services-page:not(.is-services-ready) [data-hero-cta] {
    opacity: 0;
}

.services-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(245, 247, 251, 0.7);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.services-kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary), rgba(255, 255, 255, 0.1));
}

.services-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: min(1320px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 148px 0 80px;
}

.services-hero::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 0;
    width: 100vw;
    transform: translateX(-50%);
    background-image:
        linear-gradient(90deg, rgba(5, 5, 9, 0.2), rgba(5, 5, 9, 0.08)),
        url("/assets/img/services_Hero.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    pointer-events: none;
}

.services-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.services-hero__content {
    position: relative;
    z-index: 2;
    text-align: right;
}

.services-hero__title {
    max-width: 1320px;
    margin-top: 22px;
    margin-left: auto;
    font-size: clamp(2.4rem, 4.8vw, 4.2rem);
    line-height: 1.08;
    font-weight: 650;
    color: #fff;
    white-space: pre-line;
}

.services-hero__lead {
    max-width: 1120px;
    margin-top: 28px;
    margin-left: auto;
    color: rgba(245, 247, 251, 0.78);
    font-size: clamp(1.02rem, 1.35vw, 1.28rem);
    line-height: 1.7;
}

.services-hero__actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 42px;
}

.services-cta {
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
}

.services-catalog {
    position: relative;
    padding: 94px 0 82px;
}

.services-catalog::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 34%),
        rgba(255, 255, 255, 0.008);
}

.services-intro {
    position: relative;
    display: block;
    width: min(1320px, calc(100% - 48px));
    margin: 0 auto;
    padding: 0;
}

.services-intro > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    max-width: 1320px;
}

.services-intro h2 {
    margin-top: 0;
    color: #fff;
    font-size: clamp(2rem, 3.6vw, 3.7rem);
    line-height: 1.08;
    font-weight: 700;
}

.services-cta h2 {
    margin-top: 0;
    color: #fff;
    font-size: clamp(2.3rem, 4.4vw, 4.6rem);
    line-height: 1.02;
    font-weight: 800;
}

.services-intro__copy {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    max-width: none;
    color: rgba(245, 247, 251, 0.78);
    font-size: clamp(1rem, 1.16vw, 1.12rem);
    line-height: 1.58;
}

.services-intro__copy p {
    margin: 0;
}

.services-intro__copy ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 28px;
    color: rgba(245, 247, 251, 0.9);
}

.services-intro__copy li::marker {
    color: var(--color-primary);
}

.services-cta p {
    color: rgba(245, 247, 251, 0.76);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.75;
}

.services-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
    gap: clamp(44px, 6vw, 112px);
    align-items: start;
    width: min(1320px, calc(100% - 48px));
    margin: 96px auto 0;
}

.services-grid__nav {
    position: sticky;
    top: calc(var(--header-height) + 38px);
    align-self: start;
}

.service-nav {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 10px 0 10px 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.service-nav__indicator {
    position: absolute;
    left: -1px;
    top: 10px;
    width: 2px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
    box-shadow:
        0 0 18px rgba(0, 167, 160, 0.38),
        0 0 30px rgba(198, 31, 61, 0.14);
    transform: translateY(0);
    will-change: transform, height;
}

.service-nav__indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 16px rgba(0, 167, 160, 0.72);
    transform: translate(-50%, -50%);
}

.service-nav__item {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 0 18px 22px;
    border: 0;
    background: transparent;
    color: rgba(245, 247, 251, 0.58);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: color 0.26s ease, opacity 0.26s ease, transform 0.26s ease, text-shadow 0.26s ease;
}

.service-nav__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(245, 247, 251, 0.34);
    transform: translateY(-50%) scaleX(1);
    transform-origin: left center;
    transition: background-color 0.26s ease, transform 0.26s ease;
}

.service-nav__item:hover,
.service-nav__item:focus-visible,
.service-nav__item.is-active {
    color: #fff;
    opacity: 1;
    outline: none;
}

.service-nav__item.is-active {
    transform: translateX(4px);
    text-shadow: 0 0 18px rgba(0, 167, 160, 0.18);
}

.service-nav__item.is-active::before {
    background: rgba(0, 167, 160, 0.92);
    transform: translateY(-50%) scaleX(1.65);
}

.services-grid__panels {
    display: grid;
    gap: clamp(34px, 5vw, 64px);
}

.service-card {
    position: relative;
    min-height: min(620px, 72vh);
    padding: clamp(30px, 4.2vw, 58px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left-color: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(17, 23, 32, 0.92), rgba(9, 12, 18, 0.98));
    box-shadow:
        inset 1px 0 0 rgba(0, 167, 160, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0.58;
    overflow: hidden;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        opacity 0.28s ease,
        box-shadow 0.28s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.28),
        rgba(0, 167, 160, 0.28) 34%,
        rgba(198, 31, 61, 0.22) 70%,
        rgba(255, 255, 255, 0.08)
    );
    opacity: 0;
    pointer-events: none;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    transition: opacity 0.28s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.service-card:hover,
.service-card.is-active {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.14);
    border-left-color: rgba(0, 167, 160, 0.46);
    opacity: 1;
    box-shadow:
        inset 1px 0 0 rgba(0, 167, 160, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 28px 60px rgba(0, 0, 0, 0.34);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card__icon,
.service-card h3,
.service-card h4,
.service-card__subtitle,
.service-card__capabilities section,
.service-card p,
.service-card li {
    will-change: transform, opacity;
}

.service-card:hover::before,
.service-card:hover::after,
.service-card.is-active::before,
.service-card.is-active::after {
    opacity: 1;
}

.service-card:hover .service-card__icon {
    border-color: rgba(0, 167, 160, 0.38);
    background: rgba(0, 167, 160, 0.1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 26px rgba(0, 0, 0, 0.22);
}

.service-card__icon {
    position: absolute;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
    fill: rgba(255, 255, 255, 0.9);
}

.service-card h3 {
    position: relative;
    margin-top: 8px;
    max-width: 900px;
    padding-right: 78px;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 4.5rem);
    line-height: 1.06;
    font-weight: 800;
}

.service-card p {
    position: relative;
    margin-top: 18px;
    color: rgba(245, 247, 251, 0.76);
    font-size: 1rem;
    line-height: 1.68;
}

.service-card ul {
    position: relative;
    display: grid;
    gap: 10px;
    margin-top: 24px;
    list-style: none;
}

.service-card li {
    display: flex;
    gap: 10px;
    color: rgba(245, 247, 251, 0.86);
    font-size: 0.94rem;
    line-height: 1.45;
}

.service-card li::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 18px rgba(0, 167, 160, 0.72);
    flex: 0 0 auto;
}

.services-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    margin-top: 28px;
    margin-bottom: 64px;
    padding: 40px 72px 46px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.12), transparent 22%),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08), transparent 20%),
        radial-gradient(circle at 88% 78%, rgba(0, 167, 160, 0.16), transparent 24%),
        linear-gradient(135deg, #06215B 0%, #071017 52%, #00857f 130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.services-cta > div:first-child {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.services-cta__rule {
    width: 100%;
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 12%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.18) 88%,
        transparent 100%
    );
}

.services-cta .services-kicker,
.services-cta p {
    color: rgba(255, 255, 255, 0.86);
}

.services-cta .services-kicker::before {
    background: rgba(255, 255, 255, 0.64);
}

.services-cta h2 {
    max-width: 760px;
    margin-top: 0;
    margin-left: auto;
    margin-right: 0;
    color: rgba(245, 247, 251, 0.95);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-align: right;
}

.services-cta p {
    max-width: 780px;
    margin: 18px 0 0 auto;
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.5;
    text-align: right;
}

.services-cta__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
    align-items: flex-end;
    min-width: 0;
}

.services-cta__actions .section-cta {
    justify-content: center;
    white-space: nowrap;
    padding-inline: 16px;
    font-size: 1rem;
}

.services-cta__actions .section-cta--danger {
    order: 2;
}

@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card::before {
        animation: none;
        transition: none;
    }

    .service-nav__item,
    .service-nav__item::before {
        transition: none;
    }

    .service-card:hover {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .services-hero {
        grid-template-columns: 1fr;
        padding-top: 132px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid__nav {
        position: sticky;
        top: var(--header-height);
        z-index: 5;
        margin-inline: -1px;
        padding: 10px 0;
        background: linear-gradient(180deg, rgba(5, 9, 14, 0.96), rgba(5, 9, 14, 0.82));
        backdrop-filter: blur(16px);
    }

    .service-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 12px;
        border-left: 0;
        scrollbar-width: thin;
    }

    .service-nav__indicator {
        display: none;
    }

    .service-nav__item {
        flex: 0 0 auto;
        width: auto;
        min-height: 44px;
        padding: 11px 14px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .service-nav__item::before {
        display: none;
    }

    .service-nav__item.is-active {
        transform: none;
        border-color: rgba(0, 167, 160, 0.42);
        background: rgba(0, 167, 160, 0.12);
    }

    .services-cta {
        grid-template-columns: 1fr;
    }

    .services-cta__actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: flex-end;
    }
}

.service-card__subtitle {
    position: relative;
    display: block;
    max-width: 920px;
    margin-top: 18px;
    color: #fff;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.18;
}

.service-card__capabilities {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.service-card__capabilities section {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(8, 12, 18, 0.52);
}

.service-card__capabilities h4 {
    margin: 0;
    color: #fff;
    font-size: clamp(1rem, 1.24vw, 1.24rem);
    line-height: 1.18;
}

.service-card__capabilities p {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.52;
}

@media (max-width: 760px) {
    .services-hero,
    .services-intro,
    .services-grid,
    .services-cta {
        width: min(100% - 48px, 1320px);
    }

    .services-hero {
        padding: 92px 0 60px;
    }

    .services-hero__title {
        font-size: clamp(2.45rem, 13vw, 4.2rem);
    }

    .services-intro,
    .services-grid,
    .services-cta {
        grid-template-columns: 1fr;
    }

    .service-card,
    .services-cta {
        border-radius: 10px;
    }

    .services-intro {
        display: block;
    }

    .services-intro > div {
        grid-template-columns: 1fr;
    }

    .services-intro__copy {
        grid-column: auto;
    }

    .services-catalog {
        padding: 58px 0 58px;
    }

    .services-grid {
        margin-top: 56px;
    }

    .service-card {
        min-height: auto;
        padding: 24px;
    }

    .service-card__capabilities {
        grid-template-columns: 1fr;
    }

    .service-card h3 {
        margin-top: 8px;
    }

    .services-cta {
        align-items: flex-start;
        margin-top: 18px;
        margin-bottom: 40px;
        padding: 28px 24px 36px;
    }

    .services-cta > div:first-child,
    .services-cta h2,
    .services-cta p {
        margin-left: 0;
        text-align: left;
    }

    .services-cta__actions {
        grid-template-columns: 1fr;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .services-hero,
    .services-intro,
    .services-grid,
    .services-cta {
        width: min(100% - 32px, 1320px);
    }

    .services-hero {
        padding: 108px 0 36px;
    }

    .services-hero__content {
        text-align: left;
    }

    .services-hero__title,
    .services-hero__lead {
        margin-left: 0;
    }

    .services-hero__actions {
        justify-content: flex-start;
    }
}
