.services-section {
    position: relative;
    overflow: hidden;
    background: var(--surface-flow);
}

.services-section .shell {
    position: relative;
    z-index: 1;
}

.services-shell {
    display: grid;
    gap: 40px;
}

.services-heading {
    max-width: 780px;
}

.services-kicker {
    margin-bottom: 12px;
    color: var(--brand-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.services-title {
    color: var(--brand-navy-deep);
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.services-lead {
    max-width: 620px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.8;
}

.services-interactive {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: start;
}

.services-menu {
    display: grid;
    gap: 10px;
    padding: 8px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.services-menu-label {
    margin-bottom: 14px;
    color: rgba(18, 58, 90, 0.56);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-menu-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid rgba(10, 34, 54, 0.08);
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.service-menu-item:hover {
    transform: translateX(4px);
}

.service-menu-item.is-active {
    border-bottom-color: rgba(83, 105, 223, 0.34);
}

.service-menu-index {
    color: rgba(18, 58, 90, 0.34);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-menu-copy {
    display: grid;
    gap: 6px;
}

.service-menu-title {
    color: var(--brand-navy-deep);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.03em;
}

.service-menu-summary {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.service-menu-arrow {
    align-self: center;
    color: rgba(18, 58, 90, 0.48);
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.service-menu-item.is-active .service-menu-arrow {
    color: #3651d4;
    transform: rotate(45deg);
}

.services-detail {
    position: relative;
    min-height: 100%;
    padding-left: 20px;
    border-left: 1px solid rgba(10, 34, 54, 0.08);
}

.service-detail-panel {
    display: none;
    grid-template-rows: auto 1fr auto;
    gap: 30px;
    min-height: 100%;
    padding: 10px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.service-detail-panel.is-active {
    display: grid;
}

.service-detail-head {
    display: grid;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(10, 34, 54, 0.08);
}

.service-detail-label {
    color: var(--brand-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.service-detail-title {
    color: var(--brand-navy-deep);
    font-size: clamp(30px, 2.8vw, 42px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.service-detail-summary {
    max-width: 680px;
    color: rgba(18, 58, 90, 0.72);
    font-size: 17px;
    line-height: 1.75;
}

.service-detail-body {
    display: grid;
    gap: 26px;
}

.service-detail-description {
    max-width: 760px;
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.85;
}

.service-detail-points {
    display: grid;
    gap: 16px;
}

.service-detail-point {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.service-detail-dot {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5369df, #7f93f4);
    box-shadow: 0 0 0 5px rgba(83, 105, 223, 0.08);
}

.service-detail-point p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.75;
}

.service-detail-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 2px;
}

.service-detail-footer span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(10, 34, 54, 0.08);
    border-radius: 999px;
    color: rgba(18, 58, 90, 0.72);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

:root[data-theme="dark"] .services-section {
    background: var(--surface-muted-gradient);
}

:root[data-theme="dark"] .services-kicker,
:root[data-theme="dark"] .service-detail-label {
    color: #d0a95e;
}

:root[data-theme="dark"] .services-title,
:root[data-theme="dark"] .service-menu-title,
:root[data-theme="dark"] .service-detail-title {
    color: #f5f7f8;
}

:root[data-theme="dark"] .services-lead,
:root[data-theme="dark"] .service-menu-summary,
:root[data-theme="dark"] .service-detail-summary,
:root[data-theme="dark"] .service-detail-description,
:root[data-theme="dark"] .service-detail-point p {
    color: rgba(228, 237, 244, 0.72);
}

:root[data-theme="dark"] .services-menu-label,
:root[data-theme="dark"] .service-menu-arrow,
:root[data-theme="dark"] .service-menu-index {
    color: rgba(228, 237, 244, 0.5);
}

:root[data-theme="dark"] .service-menu-item {
    border-bottom-color: rgba(159, 209, 235, 0.12);
}

:root[data-theme="dark"] .service-menu-item.is-active {
    border-bottom-color: rgba(208, 169, 94, 0.42);
}

:root[data-theme="dark"] .service-menu-item:hover {
    border-bottom-color: rgba(159, 209, 235, 0.2);
}

:root[data-theme="dark"] .service-menu-item.is-active .service-menu-arrow {
    color: #d0a95e;
}

:root[data-theme="dark"] .service-detail-panel {
    background: transparent;
    box-shadow: none;
}

:root[data-theme="dark"] .services-detail,
:root[data-theme="dark"] .service-detail-head {
    border-bottom-color: rgba(159, 209, 235, 0.12);
}

:root[data-theme="dark"] .services-detail {
    border-left-color: rgba(159, 209, 235, 0.12);
}

:root[data-theme="dark"] .service-detail-dot {
    background: linear-gradient(180deg, #d0a95e, #e0bb79);
    box-shadow: 0 0 0 5px rgba(208, 169, 94, 0.08);
}

:root[data-theme="dark"] .service-detail-footer span {
    border-color: rgba(159, 209, 235, 0.12);
    color: rgba(228, 237, 244, 0.72);
    background: rgba(255, 255, 255, 0.03);
}

.services-section [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.services-section [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .services-interactive {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .services-detail {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(10, 34, 54, 0.08);
        padding-top: 18px;
    }

    .service-detail-panel {
        padding: 0;
    }

    :root[data-theme="dark"] .services-detail {
        border-top-color: rgba(159, 209, 235, 0.12);
    }
}

@media (max-width: 767px) {
    .services-title {
        font-size: 30px;
    }

    .service-menu-item {
        grid-template-columns: 40px minmax(0, 1fr) 20px;
        padding: 16px 0;
    }

    .service-menu-index {
        font-size: 10px;
    }

    .service-menu-title {
        font-size: 17px;
    }

    .service-detail-title {
        font-size: 28px;
    }

    .service-detail-summary,
    .service-detail-description {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .services-section [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .service-menu-item,
    .service-menu-arrow {
        transition: none;
    }
}
