/*
Menu (desktop + mobile)
*/

#menu_bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--menu_height_desktop);

    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px) brightness(0.92);
    -webkit-backdrop-filter: blur(10px) brightness(0.92);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

#menu {
    max-width: var(--max_width_desktop);
    margin: 0 auto;
    height: 100%;
    padding: 0 15px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    gap: 16px;
}

#logo {
    width: var(--menu_height_desktop);
    height: var(--menu_height_desktop);
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

#menu_ul {
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;

    text-transform: uppercase;
    white-space: nowrap;
}

#menu_ul li {
    margin: 0;
    padding: 0;
}

#menu_ul li a {
    height: calc(var(--menu_height_desktop) - 12px);
    padding: 0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    text-decoration: none;

    color: rgba(240, 240, 240, 0.92);
    font-weight: 650;
    font-size: 14px;
    letter-spacing: 0.08em;

    position: relative;
    transition: color .25s ease, background-color .25s ease;
}

#menu_ul li a::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 8px;
    height: 2px;

    background: var(--main_color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    opacity: 0.9;
}

#menu_ul li a:hover {
    color: var(--main_color);
    background: rgba(0, 255, 225, 0.06);
}

#menu_ul li a:hover::after {
    transform: scaleX(1);
}

.menu_current_tab a {
    color: var(--main_color);
    background: rgba(0, 255, 225, 0.09);
}

.menu_current_tab a::after {
    transform: scaleX(1);
}

#menu_ul li a:focus-visible {
    outline: 2px solid var(--main_color);
    outline-offset: 3px;
}

#menu_toggle_button_place {
    display: none;
}

@media (max-width: 768px) {
    #logo {
        width: var(--menu_height_mobile);
        height: var(--menu_height_mobile);
    }

    #menu_bar {
        height: var(--menu_height_mobile);
        z-index: 2000;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: none;
    }

    #menu {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
        height: 100%;
    }

    #menu_toggle_button_place {
        display: flex;
        z-index: 3000;
        position: relative;
    }

    #menu_toggle_button {
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .bar1, .bar2, .bar3 {
        width: 100%;
        height: 3px;
        background-color: var(--main_color);
        transition: 0.3s;
        margin: 0;
        border-radius: 3px;
    }

    .menu_toggle_button_press .bar1 {
        transform: translateY(10px) rotate(-45deg);
    }

    .menu_toggle_button_press .bar2 {
        opacity: 0;
    }

    .menu_toggle_button_press .bar3 {
        transform: translateY(-11px) rotate(45deg);
    }

    .menu_li_blur {
        filter: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    #menu_ul {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        position: fixed;
        top: var(--menu_height_mobile);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--menu_height_mobile));

        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;

        margin: 0;
        gap: 16px;

        box-sizing: border-box;
        padding-top: 12px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: calc(16px + env(safe-area-inset-left));
        padding-right: calc(16px + env(safe-area-inset-right));

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 1500;
    }

    #menu_ul.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #menu_ul li {
        list-style: none;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 0;
    }

    #menu_ul li a {
        display: flex;
        width: 100%;
        height: 54px;
        align-items: center;
        justify-content: center;

        box-sizing: border-box;
        padding: 0;

        background: rgba(18, 18, 18, 0.96);
        border: 1px solid rgba(0, 255, 225, 0.28);
        border-radius: 14px;

        color: #ffffff;
        font-size: 16px;
        font-weight: 650;
        letter-spacing: 0.08em;
        text-decoration: none;
        text-transform: uppercase;

        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    #menu_ul li a::after {
        display: none;
        content: none;
    }

    #menu_ul li.menu_current_tab a {
        border-color: var(--main_color);
        background: rgba(0, 255, 225, 0.12);
        color: var(--main_color);
    }
}

body.menu_open {
    overflow: hidden;
}



/*
Footer (desktop + mobile)
*/

#footer {
    background: var(--footer_background_color);
    flex-shrink: 0;
    margin-top: 32px;
}

#footer .footer_inner {
    max-width: var(--max_width_desktop);
    margin: 0 auto;
    padding: 64px 16px 16px;
    box-sizing: border-box;
}

#footer .footer_grid {
    max-width: var(--max_width_desktop);
    margin: 0 auto;
    padding: 0;

    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 64px;
    align-items: start;
}

#footer section {
    min-width: 0;
}

#footer h3 {
    font-size: var(--fs_body_desktop);
    font-weight: 700;
    margin: 0 0 12px;
    color: rgba(240, 240, 240, 0.92);
}

#footer p, #footer a {
    font-size: var(--fs_small_desktop);
    color: var(--grey_color);
    line-height: 1.5;
    margin: 0;
}

#footer a {
    text-decoration: none;
    transition: color .2s ease;
}

#footer a:hover {
    color: var(--main_color);
}

#footer .footer_links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#footer a[href^="tel:"] {
    color: rgba(240, 240, 240, 0.92);
    font-weight: 650;
}

@media (max-width: 768px) {
    #footer {
        margin-top: 20px;
    }

    #footer .footer_inner {
        padding: 36px 12px 12px;
    }

    #footer .footer_grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    #footer h3 {
        font-size: var(--fs_body_mobile);
        margin: 0 0 6px;
    }

    #footer p, #footer a {
        font-size: var(--fs_small_mobile);
    }

    #footer .footer_links {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
}
