.mobile-estimate-link {
    display: none;
}

.quick-menu {
    position: fixed;
    top: 50%;
    right: 3rem;
    z-index: 90;
    width: 8rem;
    background: #073b7a;
    box-shadow: 0 0.8rem 2.4rem rgba(0, 31, 73, 0.2);
    transform: translateY(-50%);
}

.quick-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-menu__item {
    position: relative;
}

.quick-menu__item + .quick-menu__item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 1.2rem;
    left: 1.2rem;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.quick-menu__link {
    min-height: 7.7rem;
    padding: 1rem 0.4rem 0.8rem;
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quick-menu__icon {
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.35rem;
    color: #b8c5d2;
    display: block;
}

.quick-menu__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-menu__text {
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.25;
    color: inherit;
    letter-spacing: -0.06em;
    word-break: keep-all;
}

.quick-menu__link:hover,
.quick-menu__link:focus-visible {
    background: #0b4f9d;
    color: #fff;
}

.quick-menu__link:hover .quick-menu__icon,
.quick-menu__link:focus-visible .quick-menu__icon {
    color: #fff;
}

.quick-menu__link:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: -3px;
}

@media only screen and (max-width: 840px) {
    body {
        padding-bottom: 88px;
    }

    #header .mobile-estimate-link {
        height: 34px;
        margin-left: 0 !important;
        padding: 0 16px;
        background: #d72e2e;
        border-radius: 999px;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    .quick-menu {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 88px;
        max-width: none;
        transform: none;
        box-shadow: 0 -0.5rem 1.8rem rgba(0, 31, 73, 0.18);
    }

    .quick-menu__list {
        display: flex;
    }

    .quick-menu__item {
        flex: 1 1 33.333%;
    }

    .quick-menu__item--phone {
        order: 1;
    }

    .quick-menu__item--catalog {
        order: 2;
    }

    .quick-menu__item--estimate {
        order: 3;
    }

    .quick-menu__item::before {
        display: none;
    }

    .quick-menu__item--catalog::before,
    .quick-menu__item--estimate::before {
        display: block;
        top: 12px;
        right: auto;
        bottom: 12px;
        left: 0;
        width: 1px;
        height: auto;
    }

    .quick-menu__link {
        height: 88px;
        padding: 9px 4px 8px;
    }

    .quick-menu__icon {
        width: 32px;
        height: 32px;
        margin-bottom: 4px;
    }

    .quick-menu__text {
        font-size: 14px;
        line-height: 1.2;
    }

    a.goTop {
        bottom: 103px;
    }
}

@media only screen and (max-width: 480px) {
    .quick-menu {
        width: 100%;
    }


    #header .mobile-estimate-link {
        height: 32px;
        padding: 0 14px;
        font-size: 13px;
    }
}
