.hm-menu {
    column-gap: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0;
}

.hm-menu__section {
    display: flex;
    flex-direction: column;
    grid-template-rows: subgrid;
    margin-bottom: 30px;
    padding-bottom: 24px;
}

.hm-menu__section--no-children {
    border-bottom: 0;
    padding-bottom: 0;
}

.hm-menu__card {
    display: flex;
    min-width: 0;
}

.hm-menu__card-link {
    align-items: center;
    border: 1px solid #dedede;
    border-radius: 4px;
    color: #070707;
    display: flex;
    flex: 1;
    gap: 16px;
    padding: 15px;
    box-sizing: border-box;
    height: 100%;
    min-height: 80px;
    min-width: 0;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hm-menu__card-link:hover,
.hm-menu__card-link:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 12%, transparent);
    color: #070707;
    text-decoration: none;
}

.hm-menu__icon {
    align-items: center;
    color: var(--primary);
    display: flex;
    flex: 0 0 44px;
    font-size: 30px;
    justify-content: center;
    height: 44px;
    overflow: hidden;
    width: 44px;
}

.hm-menu__icon:empty {
    display: none;
}

.hm-menu__icon img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.hm-menu__title {
    flex: 1 1 auto;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    min-width: 0;
}

.hm-menu__arrow {
    flex: 0 0 auto;
    margin-left: auto;
}

.hm-menu__arrow,
.hm-menu__toggle-icon {
    border-right: 2px solid var(--primary);
    border-top: 2px solid var(--primary);
    display: block;
    height: 10px;
    transform: rotate(45deg);
    width: 10px;
}

.hm-menu__children {
    align-content: start;
    display: grid;
    gap: 17px;
    list-style: none;
    margin: 28px 15px 0;
    padding: 0;
}

.hm-menu__child--hidden {
    display: none;
}

.hm-menu__section.is-open .hm-menu__child--hidden {
    display: list-item;
}

.hm-menu__child-link {
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.2;
    text-decoration: none;
}

.hm-menu__child-link:hover,
.hm-menu__child-link:focus-visible {
    color: var(--secondary);
    text-decoration: none;
}

.hm-menu__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 18px;
    gap: 16px;
    margin: 22px 15px 0;
    padding: 0;
}

.hm-menu__toggle:hover,
.hm-menu__toggle:focus-visible {
    color: var(--secondary);
}

.hm-menu__toggle-icon {
    height: 9px;
    transform: rotate(135deg) translateY(2px);
    width: 9px;
}

.hm-menu__section.is-open .hm-menu__toggle-icon {
    transform: rotate(-45deg) translateY(2px);
}

.hm-menu__toggle [data-hm-close],
.hm-menu__section.is-open .hm-menu__toggle [data-hm-open] {
    display: none;
}

.hm-menu__section.is-open .hm-menu__toggle [data-hm-close] {
    display: inline;
}

.hm-services-sidebar,
.hm-services-sidebar * {
    box-sizing: border-box;
}

.hm-services-sidebar__list {
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hm-services-sidebar__list--level-2,
.hm-services-sidebar__list--level-3,
.hm-services-sidebar__list--level-4,
.hm-services-sidebar__list--level-5 {
    gap: 2px;
    margin: 4px 0 8px;
    padding-left: 18px;
}

.hm-services-sidebar__item {
    margin: 0;
    padding: 0;
}

.hm-services-sidebar__row {
    align-items: stretch;
    display: flex;
    gap: 2px;
    min-width: 0;
}

.hm-services-sidebar__link {
    align-items: center;
    border-radius: 0;
    color: #2b2b2b;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    line-height: 1.2;
    min-width: 0;
    padding: 10px 0;
    text-decoration: none;
    transition: color .2s ease;
}

.hm-services-sidebar__link:hover,
.hm-services-sidebar__link:focus-visible {
    color: var(--secondary);
    text-decoration: none;
}

.hm-services-sidebar__item.is-current > .hm-services-sidebar__row > .hm-services-sidebar__link {
    color: var(--primary);
    font-weight: 700;
}

.hm-services-sidebar__list--level-2 .hm-services-sidebar__link,
.hm-services-sidebar__list--level-3 .hm-services-sidebar__link,
.hm-services-sidebar__list--level-4 .hm-services-sidebar__link,
.hm-services-sidebar__list--level-5 .hm-services-sidebar__link {
    font-size: 15px;
    padding: 7px 0;
}

.hm-services-sidebar__item--parent > .hm-services-sidebar__list {
    display: none;
}

.hm-services-sidebar__item--parent.is-open > .hm-services-sidebar__list {
    display: grid;
}

.hm-services-sidebar__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #8a8a8a;
    cursor: pointer;
    display: flex;
    flex: 0 0 28px;
    justify-content: center;
    padding: 0;
    transition: color .2s ease;
}

.hm-services-sidebar__toggle:hover,
.hm-services-sidebar__toggle:focus-visible {
    color: var(--secondary);
}

.hm-services-sidebar__item.is-current > .hm-services-sidebar__row > .hm-services-sidebar__toggle {
    color: var(--primary);
}

.hm-services-sidebar__toggle-mark {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    display: block;
    height: 8px;
    transform: rotate(135deg) translateY(2px);
    transition: transform .2s ease;
    width: 8px;
}

.hm-services-sidebar__item.is-open > .hm-services-sidebar__row > .hm-services-sidebar__toggle .hm-services-sidebar__toggle-mark {
    transform: rotate(-45deg) translateY(2px);
}

.hm-services-sidebar__thumb {
    align-items: center;
    display: flex;
    flex: 0 0 34px;
    border-radius: 6px;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    width: 34px;
}

.hm-services-sidebar__thumb img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.hm-services-sidebar__title {
    flex: 1 1 auto;
    font-size: 16px;
    min-width: 0;
}

.hm-services-all {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.hm-services-all__link {
    align-items: center;
    background: var(--primary);
    border-radius: 4px;
    color: #fff;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    padding: 6px 24px;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.hm-services-all__link:hover,
.hm-services-all__link:focus-visible {
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 991px) {
    .hm-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hm-menu {
        column-gap: 22px;
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .hm-menu__section {
        margin-bottom: 22px;
    }

    .hm-menu__title {
        font-size: 20px;
    }
}

.service-detail .ba-grid-column-wrapper {
    height: 100%;
}
