.services-menu { position: relative; }

.services-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    list-style: none;
}

.services-menu__toggle::-webkit-details-marker { display: none; }
.services-menu__toggle::after {
    width: .43rem;
    height: .43rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    content: "";
}

.services-menu[open] .services-menu__toggle::after {
    transform: translateY(2px) rotate(225deg);
}

.services-menu__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + .8rem);
    left: -.75rem;
    box-sizing: border-box;
    width: min(515px, 62vw);
    max-height: min(32rem, calc(100dvh - 7rem));
    overflow: auto;
    padding: .65rem;
    border: 1px solid #c9dcf1;
    border-radius: 18px;
    background: #f9fcff;
    box-shadow: 0 16px 38px #20436b28;
    text-transform: none;
}

.services-menu__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .2rem .35rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.services-menu__link,
.services-menu__catalog {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 43px;
    padding: .54rem .7rem;
    border-radius: 10px;
    color: #233d59;
    font: 600 14px/1.35 Montserrat, sans-serif;
    text-decoration: none;
}

.services-menu__link { gap: .55rem; }
.services-menu__link > span { min-width: 0; }
.services-menu__icon {
    display: block;
    flex: 0 0 27px;
    object-fit: contain;
}

.services-menu__catalog {
    width: 100%;
    justify-content: center;
    margin: .55rem 0 0;
    text-align: center;
    padding-inline: 1.2rem;
    color: #fff;
    background: #245eaa;
}

.services-menu__catalog:hover { background: #194f96; }
.services-menu__link:is(:hover, [aria-current="page"]) { background: #dcecff; }
.services-menu :is(summary, a):focus-visible {
    outline: 2px solid #1e62b7;
    outline-offset: -2px;
}
