/* Fedoseev services dropdown. Project breakpoints: desktop >= 960px; adaptive 375–959.98px; compact < 375px. */
.services-mega-menu[hidden] {
    display: none !important;
}

.services-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 990;
    height: 973px;
    overflow: hidden;
    color: #272f39;
    background: rgba(222, 216, 210, 1);
}

.services-mega-menu.is-fixed {
    position: fixed;
    top: var(--services-menu-fixed-top, 0);
}

.services-mega-menu .services-mega-menu__inner {
    width: calc(100% - 48px);
    height: 100%;
    padding-top: 41px;
}

.services-mega-menu__title {
    display: block;
    color: #272f39;
    font-size: 28px;
    font-weight: 400;
    line-height: 28px;
    text-transform: uppercase;
}

.services-mega-menu__nav {
    margin-top: 34px;
}

.services-mega-menu__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.services-mega-menu__item {
    display: flex;
    min-width: 0;
    min-height: 50px;
    border-left: 6px solid var(--services-menu-accent, #27313d);
}

.services-mega-menu__item a {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding-left: 14px;
    color: #272f39;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    text-transform: uppercase;
}

.services-mega-menu__item a:hover,
.services-mega-menu__item a:focus-visible {
    opacity: .68;
}

.services-mega-menu-open .clinic-menu__item--services > a::after {
    transform: scaleX(1);
}

@media (min-width: 375px) and (max-width: 959.98px) {
    .services-mega-menu .services-mega-menu__inner {
        width: calc(100% - clamp(48px, 7.5vw, 72px));
    }
}

@media (max-width: 374.98px) {
    .services-mega-menu .services-mega-menu__inner {
        width: calc(100% - 48px);
    }

    .services-mega-menu__item a {
        font-size: 17px;
        line-height: 24px;
    }
}

@media (min-width: 960px) {
    .services-mega-menu {
        height: clamp(670px, calc(670px + (100vw - 960px) * .00208334), 672px);
    }

    .services-mega-menu .services-mega-menu__inner {
        width: min(calc(100% - 72px), 1420px);
        padding-top: clamp(50px, calc(50px + (100vw - 960px) * .0291667), 78px);
    }

    .services-mega-menu__title {
        font-size: 40px;
        line-height: 40px;
    }

    .services-mega-menu__nav {
        margin-top: clamp(38px, calc(38px + (100vw - 960px) * .0291667), 66px);
    }

    .services-mega-menu__list {
        --services-menu-column-min: clamp(434px, calc(434px + (100vw - 960px) * .0488722), 460px);
        grid-template-columns: repeat(auto-fit, minmax(var(--services-menu-column-min), 1fr));
        column-gap: 20px;
        row-gap: 64px;
    }

    .services-mega-menu__item a {
        padding-left: 15px;
        font-size: 18px;
        line-height: 25px;
    }
}
