.nova-services {
    padding-block: 96px;
    background: #f5f7f5;
}

.nova-services > .site-container,
.nova-service-detail > .site-container {
    width: min(100% - 64px, 1240px);
}

.nova-services-heading {
    display: grid;
    max-width: 760px;
    margin-bottom: 48px;
    gap: 14px;
}

.nova-services-eyebrow,
.nova-service-detail-eyebrow,
.nova-service-contact-label {
    color: var(--primary-dark);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nova-services-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nova-services-eyebrow > span {
    width: 28px;
    height: 2px;
    background: var(--primary);
}

.nova-services-heading h2 {
    margin: 0;
    color: #1c2428;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.12;
}

.nova-services-heading > p {
    margin: 0;
    color: #5b6560;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.nova-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.nova-service-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 360px;
    padding: 34px;
    flex-direction: column;
    border: 1px solid #e1e8e1;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 10px 28px rgb(24 32 25 / 5%);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nova-service-icon,
.nova-service-detail-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 4px;
    background: #edf4ea;
    color: var(--primary-dark);
    font-size: 1.45rem;
}

.nova-service-number {
    position: absolute;
    top: 34px;
    right: 34px;
    color: #c5cec6;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.nova-service-card h3 {
    margin: 34px 0 14px;
    color: #1c2428;
    font-size: 1.45rem;
    letter-spacing: -.025em;
    line-height: 1.3;
}

.nova-service-card p {
    margin: 0;
    color: #5b6560;
    font-size: .975rem;
    line-height: 1.75;
}

.nova-service-link {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 28px;
    gap: 12px;
    color: #1c2428;
    font-size: .9rem;
    font-weight: 700;
}

.nova-service-link i { transition: transform .2s ease; }
.nova-service-card:is(:hover, :focus-visible) {
    border-color: #cbd9c9;
    box-shadow: 0 18px 38px rgb(24 32 25 / 9%);
    transform: translateY(-4px);
}
.nova-service-card:is(:hover, :focus-visible) .nova-service-link i { transform: translateX(4px); }
.nova-service-card:focus-visible,
.nova-service-contact a:focus-visible,
.nova-service-back:focus-visible { outline: 2px solid var(--primary-dark); outline-offset: 4px; }
.nova-services-empty { margin: 0; color: #5b6560; }

.nova-service-detail {
    padding-block: 88px;
    background: #fff;
}

.nova-service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
    align-items: start;
    gap: 64px;
}

.nova-service-detail-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    margin-bottom: 44px;
    padding-bottom: 40px;
    gap: 24px;
    border-bottom: 1px solid #e6ebe6;
}

.nova-service-detail-intro p {
    margin: 10px 0 0;
    color: #35403a;
    font-size: 1.2rem;
    line-height: 1.75;
}

.nova-service-richtext { color: #35403a; font-size: 1.05rem; line-height: 1.85; }
.nova-service-richtext :is(h2, h3) { color: #1c2428; letter-spacing: -.025em; }
.nova-service-richtext h2 { margin: 46px 0 16px; font-size: 1.75rem; line-height: 1.3; }
.nova-service-richtext h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.nova-service-richtext :is(p, ul, ol) { margin: 0 0 20px; }
.nova-service-richtext :is(ul, ol) { padding-left: 1.35rem; }
.nova-service-richtext li { margin-bottom: 10px; padding-left: .35rem; }

.nova-service-contact {
    position: sticky;
    top: 108px;
    padding: 34px;
    border-radius: 4px;
    background: #1c2428;
    color: #fff;
}
.nova-service-contact-label { color: #a9c9a1; }
.nova-service-contact h2 { margin: 14px 0 16px; color: #fff; font-size: 1.5rem; line-height: 1.35; }
.nova-service-contact p { margin: 0; color: rgb(255 255 255 / 72%); line-height: 1.75; }
.nova-service-contact a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 3px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.nova-service-detail .catalog-contact-cta { margin-top: 80px; }
.nova-service-back {
    display: inline-flex;
    align-items: center;
    margin-top: 34px;
    gap: 10px;
    color: #1c2428;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 960px) {
    .nova-services-grid { grid-template-columns: 1fr; }
    .nova-service-card { min-height: 0; }
    .nova-service-detail-layout { grid-template-columns: 1fr; gap: 40px; }
    .nova-service-contact { position: static; }
}

@media (max-width: 640px) {
    .nova-services,
    .nova-service-detail { padding-block: 58px; }
    .nova-services > .site-container,
    .nova-service-detail > .site-container { width: calc(100% - 36px); }
    .nova-services-heading { margin-bottom: 32px; }
    .nova-service-card { padding: 26px; }
    .nova-service-number { top: 26px; right: 26px; }
    .nova-service-detail-intro { grid-template-columns: 1fr; }
    .nova-service-contact { padding: 28px; }
    .nova-service-detail .catalog-contact-cta { margin-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .nova-service-card,
    .nova-service-link i { transition: none; }
    .nova-service-card:is(:hover, :focus-visible),
    .nova-service-card:is(:hover, :focus-visible) .nova-service-link i { transform: none; }
}
