
/* =====================================================
   SERVICE DETAIL PAGE
   All styles are scoped to the sd- prefix.
===================================================== */

.sd-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}


/* =====================================================
   SERVICE HERO
===================================================== */

.sd-hero {
    position: relative;
    isolation: isolate;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}

.sd-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.sd-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(10, 13, 22, 0.96) 0%,
            rgba(10, 13, 22, 0.83) 45%,
            rgba(10, 13, 22, 0.42) 100%
        ),
        linear-gradient(
            0deg,
            rgba(10, 13, 22, 0.65),
            transparent 45%
        );
}

.sd-hero-content {
    width: 100%;
    padding: 64px 0 90px;
}

.sd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 55px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.sd-breadcrumb a {
    transition: color 0.2s ease;
}

.sd-breadcrumb a:hover {
    color: #fff;
}

.sd-breadcrumb > span:nth-child(2),
.sd-breadcrumb > span:nth-child(4) {
    color: rgba(255, 255, 255, 0.35);
}

.sd-breadcrumb-current {
    color: #fff;
}

.sd-hero-copy {
    max-width: 760px;
}

.sd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: #c5cbff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sd-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 14px rgba(108, 123, 255, 0.7);
}

.sd-hero-copy h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.055em;
    overflow-wrap: anywhere;
}

.sd-hero-copy > p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.9;
}

.sd-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    padding: 15px 21px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.sd-hero-btn:hover {
    background: #5264ed;
    transform: translateY(-2px);
}

.sd-hero-btn span {
    font-size: 17px;
    line-height: 1;
}

.sd-hero-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 13, 22, 0.35);
}

.sd-hero-bottom .sd-container {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 52px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sd-bottom-line {
    width: 28px;
    height: 1px;
    background: var(--accent-bright);
}


/* =====================================================
   TECHNOLOGIES
===================================================== */

.sd-technologies {
    padding: 76px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.sd-tech-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 80px;
}

.sd-section-label {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.sd-tech-heading h2,
.sd-description-aside h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.045em;
}

.sd-tech-heading h2 span,
.sd-description-aside h2 span {
    color: var(--accent);
}

.sd-tech-heading > p {
    max-width: 390px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.9;
}

.sd-tech-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.sd-tech-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--bg);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.sd-tech-item:hover {
    border-color: rgba(63, 81, 217, 0.4);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.sd-tech-indicator {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 2px;
    background: var(--accent);
}

.sd-tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 90px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transition: transform .2s ease, border-color .2s ease;
}

.sd-tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.sd-tech-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sd-tech-card span {
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.sd-tech-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

@media (max-width: 480px) {
    .sd-tech-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}


/* =====================================================
   DESCRIPTION
===================================================== */

.sd-description {
    padding: 100px 0 110px;
    background: var(--bg);
}

.sd-description-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 100px;
}

.sd-description-aside {
    position: sticky;
    top: 115px;
}

.sd-description-aside h2 {
    max-width: 360px;
}

.sd-aside-line {
    width: 55px;
    height: 3px;
    margin: 26px 0;
    border-radius: 3px;
    background: var(--accent);
}

.sd-description-aside > p {
    max-width: 320px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.9;
}

.sd-description-content {
    min-width: 0;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 12px 40px rgba(10, 13, 22, 0.035);
}

.sd-description-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.sd-description-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.sd-description-heading h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.sd-description-body {
    padding: 25px 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 2;
    overflow-wrap: anywhere;
}

.sd-description-body > :first-child {
    margin-top: 0;
}

.sd-description-body > :last-child {
    margin-bottom: 0;
}

.sd-description-body h1,
.sd-description-body h2,
.sd-description-body h3,
.sd-description-body h4 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.4;
}

.sd-description-body h2 {
    font-size: 24px;
}

.sd-description-body h3 {
    font-size: 20px;
}

.sd-description-body h4 {
    font-size: 16px;
}

.sd-description-body p {
    margin: 0 0 18px;
}

.sd-description-body ul,
.sd-description-body ol {
    padding-left: 23px;
    margin: 16px 0 24px;
}

.sd-description-body li {
    padding-left: 5px;
    margin-bottom: 9px;
}

.sd-description-body li::marker {
    color: var(--accent);
}

.sd-description-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sd-description-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 22px 0;
    border-radius: 8px;
}

.sd-description-body blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 3px solid var(--accent);
    background: var(--bg);
    color: var(--ink);
}

.sd-description-body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.sd-description-body th,
.sd-description-body td {
    padding: 10px 12px;
    border: 1px solid var(--line);
    text-align: left;
}

.sd-description-body th {
    background: var(--bg);
    color: var(--ink);
}

.sd-description-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
}

.sd-footer-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {
    .sd-tech-layout {
        gap: 40px;
    }

    .sd-description-layout {
        gap: 45px;
    }

    .sd-description-content {
        padding: 27px;
    }
}

@media (max-width: 800px) {
    .sd-container {
        padding: 0 24px;
    }

    .sd-hero {
        min-height: 420px;
    }

    .sd-hero-content {
        padding: 45px 0 65px;
    }

    .sd-breadcrumb {
        margin-bottom: 42px;
    }

    .sd-tech-layout,
    .sd-description-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sd-technologies {
        padding: 60px 0;
    }

    .sd-description {
        padding: 70px 0;
    }

    .sd-description-aside {
        position: static;
    }

    .sd-description-aside h2 {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .sd-container {
        padding: 0 20px;
    }

    .sd-hero {
        min-height: 390px;
    }

    .sd-hero-content {
        padding: 35px 0 45px;
    }

    .sd-breadcrumb {
        gap: 7px;
        margin-bottom: 35px;
        font-size: 10px;
    }

    .sd-hero-copy h1 {
        font-size: 36px;
        letter-spacing: -0.04em;
    }

    .sd-hero-copy > p {
        font-size: 13px;
        line-height: 1.8;
    }

    .sd-hero-btn {
        padding: 13px 16px;
        font-size: 12px;
    }

    .sd-hero-bottom .sd-container {
        gap: 9px;
        min-height: 46px;
        font-size: 8px;
        letter-spacing: 0.04em;
    }

    .sd-bottom-line {
        width: 15px;
    }

    .sd-technologies {
        padding: 48px 0;
    }

    .sd-tech-heading h2,
    .sd-description-aside h2 {
        font-size: 29px;
    }

    .sd-tech-list {
        gap: 9px;
    }

    .sd-tech-item {
        min-height: 40px;
        padding: 10px 12px;
        font-size: 11px;
    }

    .sd-description {
        padding: 55px 0;
    }

    .sd-description-content {
        padding: 20px;
        border-radius: 9px;
    }

    .sd-description-heading {
        gap: 12px;
    }

    .sd-description-heading h2 {
        font-size: 22px;
    }

    .sd-description-body {
        font-size: 13px;
        line-height: 1.9;
    }
}