/**
 * mod_services - service and price list.
 *
 * Name and price sit on one row until the column gets too narrow, at which
 * point the price drops under the name. A decorative rule closes the list off
 * above and below.
 */

.mod-services {
    /* leaves the module title in view when a menu item jumps to the anchor */
    scroll-margin-top: 6rem;
}

/**
 * The rules are decorative, so they are backgrounds rather than <img> tags -
 * nothing for a screen reader to announce. The artwork is 362x5 and is shown
 * at that size, shrinking only if the column is narrower.
 */
.mod-services::before,
.mod-services::after {
    content: "";
    display: block;
    width: 362px;
    max-width: 100%;
    height: 5px;
    background: url("../images/arrow-right.png") no-repeat left center;
    background-size: contain;
}

.mod-services__list {
    margin-block: 1rem;
    padding: 0;
    list-style: none;
}

.mod-services__item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    line-height: 2;
}

.mod-services__name {
    font-weight: 600;
}

@media (max-width: 1000px) {
    .mod-services__item {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
}
