.cw-services__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.cw-services__card {
    position: relative;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cw-services__card:focus-within {
    z-index: 1;
    border-color: #444;
    box-shadow: 0 0 0 2px #444, 0 .5rem 1.15rem #33333326;
}

.cw-services__link:hover {
    color: inherit;
    text-decoration: none;
}

@media (hover: hover) {
    .cw-services__card:hover {
        z-index: 1;
        transform: scale(1.04);
        border-color: #444;
        box-shadow: 0 0 0 2px #444, 0 .5rem 1.15rem #33333326;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cw-services__card {
        transition: none;
    }
}

.cw-services__link:focus-visible {
    outline: 3px solid #153458;
    outline-offset: -4px;
}

.cw-service-dialog {
    box-sizing: border-box;
    width: min(30rem, calc(100% - 2rem));
    max-height: 90vh;
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid #ccd8e5;
    border-radius: .8rem;
    background: #fff;
    color: #0c1e36;
    box-shadow: 0 1rem 3rem #33333340;
}

.cw-service-dialog--repair {
    width: min(43rem, calc(100% - 2rem));
}

.cw-service-dialog::backdrop {
    background: #061529a6;
}

.cw-service-dialog h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.cw-service-dialog__heading,
.cw-service-dialog__actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.cw-service-dialog__heading {
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cw-service-dialog__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1.4rem;
}

.cw-service-dialog button,
.cw-service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: .55rem 1rem;
    border: 1px solid #aab8c8;
    border-radius: .4rem;
    background: #fff;
    color: #0c1e36;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.cw-service-dialog .cw-service-action,
a.cw-service-action {
    border-color: #ffda38;
    background: #ffda38;
    color: #0c1e36;
    font-weight: 700;
}

.cw-service-action:hover {
    text-decoration: underline;
}

.cw-repair-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1rem;
}

.cw-repair-form__wide {
    grid-column: 1 / -1;
}

.cw-repair-form label:not([hidden]) {
    display: grid;
    gap: .25rem;
    font-weight: 600;
}

.cw-repair-form input:not([type="hidden"]),
.cw-repair-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: .5rem;
    border: 1px solid #aab8c8;
    border-radius: .3rem;
    background: #fff;
    color: #0c1e36;
    font: inherit;
    font-weight: 400;
}

.cw-repair-status {
    padding: .75rem;
    background: #eef3f8;
    border-inline-start: 4px solid #444;
}

.cw-service-page__hero,
.cw-service-page__details {
    padding: clamp(2.75rem, 6vw, 5rem) max(5vw, calc((100% - 75rem) / 2));
}

.cw-service-page__hero {
    position: relative;
    isolation: isolate;
    background: #0c1e36;
    color: #fff;
}

.cw-service-page__hero img,
.cw-service-page__hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.cw-service-page__hero img {
    object-fit: cover;
}

.cw-service-page__hero::after {
    content: "";
    background: linear-gradient(90deg, #071626f5, #071626a8 70%, #07162655);
}

.cw-service-page__hero div {
    max-width: 45rem;
}

.cw-service-page__hero h1 {
    margin: 0;
    color: inherit;
    font: 800 clamp(2.3rem, 6vw, 4.8rem)/1.05 Inter, system-ui, sans-serif;
    letter-spacing: -.04em;
}

.cw-service-page__label {
    color: #ffda38;
    font-weight: 700;
}

.cw-service-page__details {
    background: #f4f6f9;
    color: #0c1e36;
}

.cw-service-page__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
}

.cw-service-page__grid article {
    padding: 1.25rem;
    border: 1px solid #dce3ed;
    border-top: 4px solid #444;
    border-radius: .65rem;
    background: #fff;
}

.cw-service-page__grid h3 {
    margin: 0;
}

@media (max-width: 540px) {
    .cw-repair-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
