@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: minmax(138px, 1fr) 112px 38px;
        gap: 8px;
        min-height: 76px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .logo {
        grid-column: 1;
    }

    .logo img {
        width: 150px;
        max-width: 100%;
    }

    .header-contacts {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        min-width: 0;
        max-width: 112px;
    }

    .header-phone {
        display: inline-block;
        color: #235a7c;
        font-size: 16px;
        line-height: 1.05;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        text-align: left;
    }

    .nav-button {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: var(--red, #e30016);
        border-radius: 3px;
    }

    .nav-button span {
        width: 18px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
    }
}

@media (max-width: 420px) {
    .header-inner {
        grid-template-columns: minmax(126px, 1fr) 96px 36px;
        gap: 6px;
    }

    .logo img {
        width: 142px;
    }

    .header-contacts {
        max-width: 96px;
    }

    .header-phone {
        font-size: 15px;
    }
}
