﻿/* Mobile menu parity with Figma Menu_Mobile (7:1598) */

.menu-toggle {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.menu-toggle img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.mobile-menu {
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu__panel {
    width: min(366px, 100%);
    min-height: 100dvh;
    padding: 16px 24px;
    display: grid;
    align-content: start;
    gap: 24px;
    background: #ffffff;
    color: #1d3042;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.25);
}

.mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-menu__logo {
    width: 258px;
    max-width: calc(100% - 48px);
    height: auto;
}

.menu-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 2px solid #1d3042;
    border-radius: 4px;
    background: transparent;
    color: #1d3042;
}

.menu-close__icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.menu-close__icon::before,
.menu-close__icon::after {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.menu-close__icon::before {
    transform: rotate(45deg);
}

.menu-close__icon::after {
    transform: rotate(-45deg);
}

.mobile-menu__divider {
    width: 100%;
    height: 1px;
    background: rgba(29, 48, 66, 0.25);
    transform: translateY(-1px);
}

.mobile-menu__nav {
    display: grid;
    justify-items: end;
    gap: 32px;
    padding: 0;
    border: 0;
}

.mobile-menu__nav a {
    font-family: "Unbounded", sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: right;
    color: #5a7d9e;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible {
    color: #3d5f7f;
}

.mobile-menu__contacts {
    display: grid;
    justify-items: end;
    gap: 0;
    margin: 0;
    padding: 0;
    color: rgba(29, 48, 66, 0.8);
}

.mobile-menu__contacts a {
    width: 244px;
    font-family: "Golos Text", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.72px;
    text-align: center;
}

.mobile-menu__actions {
    display: grid;
    gap: 0;
}

.mobile-menu__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 40px;
    padding: 8px 24px;
    border-radius: 999px;
    font-family: "Golos Text", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.48px;
    text-transform: uppercase;
}

.mobile-menu__button--primary {
    border: 0;
    background: #ffda36;
    color: #1d3042;
}

.mobile-menu__button--ghost {
    border: 2px solid #1d3042;
    background: #ffffff;
    color: #1d3042;
}

.mobile-menu__tg-icon {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

.mobile-menu__tg-icon img {
    display: block;
    width: 19px;
    height: 16px;
    object-fit: contain;
}

@media (max-width: 1279px) {
    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        justify-self: end;
        grid-column: 3;
    }
}

@media (max-width: 899px) {
    .mobile-menu__panel {
        width: min(366px, 100%) !important;
    }
}

/* Yellow button states */
.mobile-menu__button--primary:hover,
.mobile-menu__button--primary:focus-visible {
    background: #D3B53A;
}

.mobile-menu__button--primary:active {
    background: #A28B2B;
    transform: translateY(2px);
}
