.services-page-section {
    --services-page-surface: rgba(247, 251, 254, 0.94);
    --services-page-card-surface: rgba(255, 255, 255, 0.92);
    --services-page-card-border: rgba(44, 99, 143, 0.13);
    --services-page-card-shadow: rgba(30, 67, 104, 0.08);

    position: relative;
    isolation: isolate;
    margin: 20px 20px 0;
    padding: 96px 0 104px;
    overflow: hidden;
    border: 1px solid rgba(67, 119, 161, 0.08);
    border-radius: 30px;
    background: var(--services-page-surface);
}

.dark-mode .services-page-section {
    --services-page-surface: rgba(5, 19, 33, 0.97);
    --services-page-card-surface: linear-gradient(155deg, rgba(9, 30, 49, 0.96), rgba(5, 20, 35, 0.98));
    --services-page-card-border: rgba(116, 171, 214, 0.14);
    --services-page-card-shadow: rgba(0, 0, 0, 0.22);

    border-color: rgba(143, 193, 230, 0.08);
    background: var(--services-page-surface);
}

.services-page-container {
    position: relative;
    z-index: 2;
    width: min(100%, 1580px);
    margin: 0 auto;
    padding: 0 36px;
}

.services-page-dashboard,
.services-page-dashboard > span {
    position: absolute;
    pointer-events: none;
}

.services-page-dashboard {
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.services-page-dashboard-grid {
    top: 0;
    right: -80px;
    width: 440px;
    height: 260px;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(60, 125, 184, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(60, 125, 184, 0.11) 1px, transparent 1px);
    background-size: 26px 26px;
    transform: skewX(-12deg) rotate(-5deg);
    -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 78%);
            mask-image: linear-gradient(135deg, #000 0%, transparent 78%);
}

.services-page-dashboard-trace {
    left: -54px;
    bottom: 64px;
    width: 360px;
    height: 110px;
    opacity: 0.3;
    background:
        linear-gradient(135deg, transparent 0 14%, rgba(77, 169, 255, 0.25) 14.4% 14.8%, transparent 15.2% 36%, rgba(130, 88, 200, 0.2) 36.4% 36.8%, transparent 37.2%),
        linear-gradient(28deg, transparent 0 52%, rgba(45, 189, 187, 0.23) 52.3% 52.7%, transparent 53%);
}

.services-page-dashboard-nodes {
    left: 5.5%;
    top: 62px;
    width: 138px;
    height: 88px;
    opacity: 0.34;
    background-image: radial-gradient(circle, rgba(54, 137, 210, 0.5) 1.4px, transparent 1.8px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 86%);
            mask-image: linear-gradient(135deg, #000, transparent 86%);
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.services-page-card {
    position: relative;
    min-width: 0;
    min-height: 430px;
    height: 100%;
    overflow: visible;
    transition: transform 220ms ease;
}

.services-page-card-surface {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 430px;
    height: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 28px 28px 28px 10px;
    background: var(--services-page-card-surface);
    box-shadow: none;

    
    -webkit-mask-image:
        linear-gradient(#000 0 0),
        url("/images/dump/service/ser-layer.png");
    -webkit-mask-repeat: no-repeat, no-repeat;
    -webkit-mask-position: 0 0, right bottom;
    -webkit-mask-size: 100% 100%, 96px 84px;
    -webkit-mask-composite: xor;

    mask-image:
        linear-gradient(#000 0 0),
        url("/images/dump/service/ser-layer.png");
    mask-repeat: no-repeat, no-repeat;
    mask-position: 0 0, right bottom;
    mask-size: 100% 100%, 96px 84px;
    mask-composite: exclude;
}

.services-page-card:nth-child(3n + 2) .services-page-card-surface {
    border-radius: 28px 28px 10px 28px;
}

.services-page-card:hover {
    transform: translateY(-5px);
}


.services-page-card-media {
    position: relative;
    display: block;
    width: 100%;
    height: 218px;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 18%, rgba(77, 169, 255, 0.18), transparent 34%),
        linear-gradient(145deg, #0a1d31, #061322);
}

.services-page-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(2, 11, 22, 0) 38%, rgba(2, 11, 22, 0.28) 100%),
        linear-gradient(135deg, rgba(130, 88, 200, 0.08), transparent 46%, rgba(45, 189, 187, 0.08));
}

.services-page-card-image,
.services-page-card-media-fallback {
    display: block;
    width: 100%;
    height: 100%;
}

.services-page-card-image {
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 350ms ease;
}

.services-page-card:hover .services-page-card-image {
    transform: scale(1.045);
    filter: saturate(1.06);
}

.services-page-card-media-fallback {
    background:
        radial-gradient(circle at 72% 32%, rgba(45, 189, 187, 0.24), transparent 22%),
        linear-gradient(135deg, rgba(130, 88, 200, 0.22), rgba(77, 169, 255, 0.14) 46%, rgba(45, 189, 187, 0.18));
}

.services-page-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 210px;
    padding: 24px 28px 76px;
}

.services-page-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
    margin-bottom: 14px;
}

.services-page-card-number {
    font-family: var(--font-secondary);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: #496fc9;
}

.dark-mode .services-page-card-number {
    color: #68b9f0;
}

.services-page-card-icon-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(80, 132, 188, 0.14);
    border-radius: 12px 12px 12px 5px;
    background: rgba(236, 245, 251, 0.9);
}

.dark-mode .services-page-card-icon-shell {
    border-color: rgba(108, 166, 214, 0.16);
    background: rgba(8, 28, 46, 0.9);
}

.services-page-card-icon {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.services-page-card-signal {
    position: relative;
    width: 58px;
    height: 1px;
    background: linear-gradient(90deg, rgba(73, 111, 201, 0.2), rgba(45, 189, 187, 0.72));
}

.services-page-card-signal::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dbdbb;
    box-shadow: 0 0 0 5px rgba(45, 189, 187, 0.08);
    transform: translate(50%, -50%);
}

.services-page-card-title {
    margin: 0 0 11px;
    color: var(--theme-text-strong);
    font-family: var(--font-main);
    font-size: clamp(22px, 1.55vw, 27px);
    line-height: 1.13;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.services-page-card-title a {
    color: inherit;
    text-decoration: none;
}

.services-page-card-description {
    display: -webkit-box;
    max-width: 315px;
    margin: 0;
    overflow: hidden;
    color: var(--theme-text-muted);
    font-size: 15px;
    line-height: 1.7;
    font-weight: 500;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.services-page-card-button.service-btn {
    right: 10px;
    bottom: 0;
    z-index: 4;
}

@media (max-width: 1350px) {
    .services-page-container {
        padding: 0 28px;
    }

    .services-page-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .services-page-section {
        padding: 76px 0 82px;
    }

    .services-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-page-card,
    .services-page-card-surface {
        min-height: 410px;
    }
}

@media (max-width: 768px) {
    .services-page-section {
        margin: 12px 12px 0;
        padding: 58px 0 64px;
        border-radius: 26px;
    }

    .services-page-container {
        padding: 0 18px;
    }

    .services-page-grid {
        gap: 18px;
    }

    .services-page-card-media {
        height: 200px;
    }

    .services-page-card-content {
        padding: 22px 24px 72px;
    }

    .services-page-dashboard-grid {
        right: -190px;
        opacity: 0.12;
    }
}

@media (max-width: 576px) {
    .services-page-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .services-page-card,
    .services-page-card-surface {
        min-height: 0;
    }

    .services-page-card-media {
        height: clamp(190px, 56vw, 240px);
    }

    .services-page-card-content {
        min-height: 190px;
    }
}

@media (max-width: 380px) {
    .services-page-container {
        padding: 0 14px;
    }

    .services-page-card-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}
