.services-page {
    min-height: 100vh;
    color: #edf3f9;
    background: #040c16;
}

.services-hero,
.service-detail-hero {
    border-bottom: 1px solid #202a34;
    background:
        radial-gradient(circle at 84% 12%, rgba(255, 122, 26, 0.16), transparent 38%),
        radial-gradient(circle at 14% 20%, rgba(21, 84, 137, 0.2), transparent 36%),
        linear-gradient(180deg, #060e18 0%, #071221 100%);
}

.services-hero {
    padding: 62px 0 38px;
}

.services-hero__inner {
    display: grid;
    gap: 14px;
}

.services-kicker {
    margin: 0;
    color: #ff7a1a;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.services-hero h1,
.service-detail-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(1.85rem, 2.8vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.services-hero__lead,
.service-detail-hero__lead {
    max-width: 820px;
    margin: 0;
    color: #b8c5d3;
    font-size: 1.08rem;
    line-height: 1.5;
}

.services-section {
    padding: 42px 0 62px;
}

.services-section--related {
    border-top: 1px solid #202a34;
    background: #06111f;
}

.services-section__head {
    margin-bottom: 24px;
}

.services-section__head h2 {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 2.35vw, 2.35rem);
    line-height: 1.12;
}

.services-timeline {
    display: grid;
    gap: 16px;
}

.services-step-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    min-height: 174px;
    border: 1px solid #26384a;
    border-radius: 8px;
    background: linear-gradient(180deg, #0a1728 0%, #0a1422 100%);
    padding: 22px;
}

.services-step-card--with-media {
    grid-template-columns: 96px minmax(0, 1fr) minmax(220px, 300px);
}

.services-step-card__number {
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 122, 26, 0.55);
    border-radius: 8px;
    color: #ff9a4f;
    background: rgba(255, 122, 26, 0.08);
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    font-weight: 800;
}

.services-step-card__body {
    display: grid;
    gap: 10px;
}

.services-step-card h3 {
    margin: 0;
    color: #edf3f9;
    font-size: 1.34rem;
    line-height: 1.25;
}

.services-step-card p,
.service-panel p,
.service-side-card p,
.service-project-card p {
    margin: 0;
    color: #b9c8d7;
    line-height: 1.48;
}

.services-step-card ul {
    margin: 4px 0 0;
    padding-left: 18px;
    color: #c7d4e0;
}

.services-step-card li {
    margin-bottom: 5px;
}

.services-step-card__media {
    min-height: 154px;
    border-radius: 6px;
    overflow: hidden;
    background: #081321;
}

.services-step-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 154px;
    object-fit: cover;
}

.services-link,
.service-back-link,
.service-link-list a {
    width: fit-content;
    color: #ff9a4f;
    font-weight: 700;
    text-decoration: none;
}

.services-link:hover,
.service-back-link:hover,
.service-link-list a:hover {
    color: #ffc08d;
}

.services-empty-state {
    border: 1px solid #26384a;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.72);
    padding: 24px;
}

.services-empty-state strong {
    display: block;
    color: #edf3f9;
    font-size: 1.1rem;
}

.services-empty-state p {
    margin: 8px 0 0;
    color: #9fb0c1;
}

.service-detail-hero {
    padding: 52px 0 42px;
}

.service-detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
}

.service-detail-hero__copy {
    display: grid;
    gap: 14px;
}

.service-detail-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.service-detail-hero__media {
    min-height: 320px;
    border: 1px solid #26384a;
    border-radius: 8px;
    overflow: hidden;
    background: #0a1728;
}

.service-detail-hero__media img,
.service-detail-hero__placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.service-detail-hero__placeholder {
    background-image:
        linear-gradient(180deg, rgba(3, 10, 18, 0.05), rgba(3, 10, 18, 0.35)),
        url("/hero-background.png");
    background-size: cover;
    background-position: center;
}

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

.service-detail-content {
    display: grid;
    gap: 18px;
}

.service-panel,
.service-side-card,
.service-project-card {
    border: 1px solid #26384a;
    border-radius: 8px;
    background: rgba(7, 17, 30, 0.72);
    padding: 22px;
}

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

.service-rich-text {
    color: #c7d4e0;
    line-height: 1.62;
}

.service-rich-text :first-child {
    margin-top: 0;
}

.service-rich-text :last-child {
    margin-bottom: 0;
}

.service-task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.service-task-grid article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(109, 132, 157, 0.28);
    border-radius: 8px;
    padding: 14px;
}

.service-task-grid span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #ff9a4f;
    background: rgba(255, 122, 26, 0.1);
    display: inline-grid;
    place-items: center;
    font-weight: 800;
}

.service-side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 14px;
}

.service-side-card {
    display: grid;
    gap: 10px;
}

.service-link-list {
    display: grid;
    gap: 8px;
}

.service-faq {
    display: grid;
    gap: 10px;
}

.service-faq details {
    border: 1px solid rgba(109, 132, 157, 0.28);
    border-radius: 8px;
    padding: 14px;
}

.service-faq summary {
    color: #edf3f9;
    cursor: pointer;
    font-weight: 700;
}

.service-faq details div {
    margin-top: 10px;
    color: #b9c8d7;
    line-height: 1.5;
}

.service-related-products,
.service-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-project-card {
    display: grid;
    gap: 10px;
}

.service-project-card h3 {
    margin: 0;
    color: #edf3f9;
    font-size: 1.1rem;
    line-height: 1.3;
}

.service-project-card__meta {
    color: #ff9a4f !important;
    font-size: 0.9rem;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .service-related-products,
    .service-project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .service-detail-hero__grid,
    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .services-hero,
    .service-detail-hero {
        padding: 42px 0 28px;
    }

    .services-step-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .services-step-card__media {
        display: none;
    }

    .services-step-card__number {
        width: 62px;
        height: 62px;
        font-size: 1.2rem;
    }

    .service-detail-hero__media,
    .service-detail-hero__media img,
    .service-detail-hero__placeholder {
        min-height: 230px;
    }

    .service-task-grid,
    .service-related-products,
    .service-project-grid {
        grid-template-columns: 1fr;
    }
}
