html,
body {
    overflow-x: hidden;
}

.featured-four {
    grid-template-columns: repeat(4, 1fr);
}

.services-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3rem;
    width: auto;
    margin: -3rem -2rem 0;
    padding: clamp(3rem, 6vw, 5rem) max(2rem, calc((100vw - 1200px) / 2 + 2rem)) 5.25rem;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(210, 188, 131, .12), transparent 25rem),
        linear-gradient(120deg, #14273c, #213d58);
    border-bottom: 5px solid #a88b4f;
}

.services-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -5rem;
    bottom: -8rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(210, 188, 131, .17);
    border-radius: 50%;
    box-shadow: 0 0 0 3.5rem rgba(255, 255, 255, .018), 0 0 0 7rem rgba(255, 255, 255, .012);
}

.services-hero h1 {
    margin: .45rem 0 1rem;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: .98;
}

.services-hero p {
    max-width: 720px;
    margin-bottom: 0;
    color: #d5dce2;
    font-size: 1rem;
    line-height: 1.7;
}

.services-hero .eyebrow {
    color: #d2bc83;
}

.service-index-mark {
    display: grid;
    min-width: 132px;
    min-height: 132px;
    place-content: center;
    justify-items: center;
    padding: 1rem 1.6rem;
    border: 1px solid rgba(210, 188, 131, .72);
    outline: 1px solid rgba(210, 188, 131, .2);
    outline-offset: 6px;
    background: rgba(8, 24, 39, .24);
}

.service-index-mark span,
.service-index-mark small {
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.service-index-mark strong {
    margin: .15rem 0;
    color: #d2bc83;
    font: 2.65rem/1 Georgia, serif;
}

.service-jump {
    position: relative;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(960px, calc(100% - 3rem));
    margin: -1.8rem auto 3rem;
    padding: .45rem;
    background: #fff;
    border: 1px solid #d5cfc1;
    border-top: 4px solid #a88b4f;
    box-shadow: 0 14px 32px rgba(20, 39, 60, .16);
}

.service-jump a {
    display: grid;
    min-height: 54px;
    place-items: center;
    padding: .75rem 1rem;
    color: #1b3047;
    border-right: 1px solid #ded7ca;
    text-align: center;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color .18s ease, color .18s ease;
}

.service-jump a:last-child {
    border-right: 0;
}

.service-jump a:hover,
.service-jump a:focus-visible {
    color: #fff;
    background: #1b3047;
    outline: none;
}

.institution-services {
    scroll-margin-top: 1.5rem;
    margin: 0 0 2.5rem;
}

.institution-services > header {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #1b3047;
}

.institution-services > header img,
.institution-emblem {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    object-fit: contain;
    color: #d2bc83;
    background: #1b3047;
    border: 2px solid #a88b4f;
    border-radius: 50%;
    font: 700 1.1rem Georgia, serif;
}

.institution-services > header h2,
.institution-services > header p {
    margin: .15rem 0;
}

.service-catalog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-catalog > a {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 1.25rem;
    color: #20262d;
    background: #fff;
    border: 1px solid #d5cfc1;
    border-top: 4px solid #a88b4f;
    box-shadow: 0 7px 18px rgba(20, 39, 60, .06);
    text-decoration: none;
}

.service-catalog > a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 39, 60, .13);
}

.service-catalog span {
    color: #796235;
    font-size: .63rem;
    letter-spacing: .12em;
}

.service-catalog h3 {
    margin: .5rem 0;
}

.service-catalog p {
    color: #62686c;
    font-size: .88rem;
}

.service-catalog b {
    margin-top: auto;
    color: #385475;
    font-size: .8rem;
}

.admin-services > header {
    border-color: #783535;
}

.admin-services .institution-emblem {
    background: #783535;
}

@media (max-width: 1000px) {
    .featured-four,
    .service-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .services-hero {
        grid-template-columns: 1fr;
        margin: -3rem -1rem 0;
        padding: 3.25rem 1.5rem 4rem;
    }

    .services-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.2rem);
    }

    .service-index-mark {
        display: none;
    }

    .service-jump {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: calc(100% - 1.5rem);
        margin-top: -1.4rem;
        margin-bottom: 2.5rem;
        padding: .35rem;
    }

    .service-jump a {
        min-height: 58px;
        padding: .65rem .45rem;
        border-right: 1px solid #ded7ca;
        border-bottom: 1px solid #ded7ca;
        font-size: .76rem;
    }

    .service-jump a:nth-child(2n) {
        border-right: 0;
    }

    .service-jump a:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .featured-four,
    .service-catalog {
        grid-template-columns: 1fr;
    }

    .institution-services > header {
        grid-template-columns: 55px 1fr;
    }

    .institution-services > header img,
    .institution-emblem {
        width: 50px;
        height: 50px;
    }
}
