.service-section {
    display: grid;
    scroll-margin-top: 90px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px;
}
.service-section--spaced {
    margin-top: 1rem;
}
.service-section__content {
    grid-column: span 12 / span 12;
}
.service-box {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}
.service-box__title {
    padding: 14px 18px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .2px;
    background: linear-gradient(90deg, #b91c1c, #ea2424, #f87171);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 14px rgba(234, 36, 36, .25);
}
.service-box__body {
    padding: 12px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}
.service-search {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f4f4f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
}
.service-search__field {
    position: relative;
    flex: 1;
    min-width: 0;
}
.service-search__icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    color: #ea2424;
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}
.service-search__input {
    width: 100%;
    height: 40px;
    padding: 0 42px 0 42px;
    color: #111827;
    font: inherit;
    font-size: 14px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 10px;
    outline: none;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.service-search__input::placeholder {
    color: #9ca3af;
}
.service-search__input:focus {
    border-color: #ea2424;
    box-shadow: 0 0 0 3px rgba(234, 36, 36, .12);
}
.service-search__input::-webkit-search-decoration,
.service-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.service-search__clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #6b7280;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
}
.service-search__clear:hover {
    color: #ea2424;
    background: #fef2f2;
}
.service-search__clear.is-visible {
    display: inline-flex;
}
.service-search__count {
    flex-shrink: 0;
    min-width: 76px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}
.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}
.service-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    background: #f4f4f5;
    border-radius: 8px;
    color: inherit;
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(234, 36, 36, .12);
    color: inherit;
}
.service-card[hidden] {
    display: none !important;
}
.service-card__image {
    width: 100px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
    background: #e4e4e7;
}
.service-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-card__content {
    flex: 1;
    min-width: 0;
}
.service-card__name {
    color: #111827;
    font-weight: 700;
    line-height: 1.25;
}
.service-card__description {
    margin: 3px 0 0;
    color: #111827;
    line-height: 1.35;
}
.service-card__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 8px;
}
.service-card__actions:not(:has(.service-price)) {
    grid-template-columns: minmax(0, 1fr);
}
.service-price,
.service-buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0 10px;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 10px;
    box-sizing: border-box;
}
.service-price {
    color: #ea2424;
    background: #fef2f2;
    border: 1px dashed #f87171;
}
.service-buy-button {
    color: #fff;
    cursor: pointer;
    border: 0;
    outline: 0;
    background: linear-gradient(135deg, #ea2424, #ef4444);
    box-shadow: 0 4px 12px rgba(234, 36, 36, .35);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.service-buy-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 7px 18px rgba(234, 36, 36, .45);
}
.service-buy-button:disabled,
.service-buy-button.is-out {
    cursor: not-allowed;
    opacity: .55;
    filter: grayscale(.3);
    box-shadow: none;
    transform: none;
}
.service-buy-button__icon {
    display: none;
    align-items: center;
    justify-content: center;
}
.service-buy-button__icon i {
    font-size: 22px;
    line-height: 1;
}
.service-search-empty {
    display: none;
    padding: 24px 14px;
    color: #6b7280;
    text-align: center;
    background: #fafafa;
    border: 1px dashed #fecaca;
    border-radius: 10px;
}
.service-search-empty.is-visible {
    display: block;
}
.service-search-empty i {
    display: block;
    margin-bottom: 6px;
    color: #ea2424;
    font-size: 30px;
}
@media (min-width: 1024px) {
    .service-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (max-width: 640px) {
    .service-box__title {
        padding: 12px 14px;
        font-size: 14px;
    }
    .service-box__body {
        padding: 10px;
    }
    .service-search {
        gap: 8px;
        padding: 8px;
    }
    .service-search__input {
        height: 38px;
        font-size: 16px;
    }
    .service-search__count {
        display: none;
    }
    .service-card {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        align-items: start;
        gap: 10px;
    }
    .service-card__image {
        width: 90px;
        height: 90px;
    }
    .service-card__actions {
        gap: 8px;
        margin-top: 6px;
    }
    .service-price,
    .service-buy-button {
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }
    .service-buy-button__text {
        display: none;
    }
    .service-buy-button__icon {
        display: inline-flex;
    }
}
