.hal-catalog {
    --hal-catalog-blue: #087eaa;
    --hal-catalog-dark: #075c82;
    --hal-catalog-text: #24343d;
    --hal-catalog-card: #fff;
    --hal-catalog-border: #cce1e9;
    --hal-catalog-radius: 14px;
    --hal-button-size: 17px;
    --hal-catalog-font-family: inherit;
    color: var(--hal-catalog-text);
    font-family: var(--hal-catalog-font-family);
}

.hal-catalog__filters button,
.hal-catalog-card__body a,
.hal-catalog-modal__dialog > a {
    font-size: var(--hal-button-size) !important;
    font-weight: 700 !important;
}

.hal-catalog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.hal-catalog__filters button {
    background: #fff;
    border: 1px solid #bdd8e2;
    border-radius: 999px;
    color: #27434e;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
}

.hal-catalog__filters button.is-active {
    background: var(--hal-catalog-blue);
    border-color: var(--hal-catalog-blue);
    color: #fff;
}

.hal-catalog__grid {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hal-catalog-card {
    background: var(--hal-catalog-card);
    border: 1px solid var(--hal-catalog-border);
    border-radius: var(--hal-catalog-radius);
    box-shadow: 0 7px 22px rgba(7, 92, 130, .08);
    overflow: hidden;
}

.hal-catalog-card[hidden] {
    display: none;
}

.hal-catalog .hal-catalog-card__image {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: #f5f8f9 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #24343d !important;
    cursor: zoom-in;
    display: flex;
    justify-content: center;
    min-width: 0 !important;
    padding: 12px !important;
    width: 100%;
}

.hal-catalog-card__image img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.hal-catalog .hal-catalog-card__image--service {
    cursor: default;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.hal-catalog-card__image--service strong {
    font-size: 18px;
}

.hal-catalog-card__image--service p {
    font-size: 13px;
    margin: 0;
}

.hal-catalog-card__service-icon {
    align-items: center;
    background: var(--hal-catalog-dark);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 12px;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.hal-catalog-card__body {
    padding: 15px;
    text-align: center;
}

.hal-catalog-card__name,
.hal-catalog-card__code {
    margin: 0;
}

.hal-catalog-card__name {
    font-size: 15px;
    font-weight: 700;
}

.hal-catalog-card__code {
    color: #637982;
    font-size: 13px;
    margin-top: 3px;
}

.hal-catalog-card__body a,
.hal-catalog-modal__dialog > a {
    background: var(--hal-catalog-blue);
    border-radius: 7px;
    color: #fff !important;
    display: inline-block;
    font-weight: 700;
    margin-top: 13px;
    padding: 10px 14px;
    text-decoration: none;
}

.hal-catalog-modal[hidden] {
    display: none;
}

.hal-catalog-modal {
    inset: 0;
    position: fixed;
    z-index: 100000;
}

.hal-catalog-modal__backdrop {
    background: rgba(10, 29, 38, .74);
    inset: 0;
    position: absolute;
}

.hal-catalog-modal__dialog {
    background: #fff;
    border-radius: 14px;
    left: 50%;
    max-height: 90vh;
    max-width: 680px;
    overflow: auto;
    padding: 28px;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
}

.hal-catalog-modal__close {
    background: #fff;
    border: 1px solid #cad9df;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    height: 42px;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
}

.hal-catalog-modal__image {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 300px;
}

.hal-catalog-modal__image img {
    max-height: 58vh;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .hal-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .hal-catalog__grid { gap: 14px; }
    .hal-catalog-card__body { padding: 12px 8px; }
    .hal-catalog-card__body a { font-size: 12px; padding: 9px 8px; }
}
