.topbar .nav-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
    padding-block: 5px;
}

.topbar .nav .nav-actions a {
    justify-content: center;
    min-height: 36px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.topbar .nav .nav-phone {
    background: var(--accent);
    color: #1a140e;
}

.topbar .nav .nav-phone:is(:hover, :focus-visible) {
    background: #ffb875;
}

.topbar .nav .nav-bonus { color: var(--accent); }
.topbar .nav .nav-bonus:is(:hover, :focus-visible) { background: #33261e; }

@media (prefers-reduced-motion: no-preference) {
    .topbar .nav .nav-phone:not([aria-current]) {
        animation: phone-link-glow 1.5s ease-in-out .2s 3;
    }
}

@keyframes phone-link-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgb(255 179 108 / 0);
    }

    50% {
        background-color: #ffcd99;
        box-shadow: 0 0 0 5px rgb(255 179 108 / .32), 0 0 18px rgb(255 179 108 / .45);
    }
}

@media (max-width: 1040px) {
    .topbar .nav {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0 8px;
        overflow: visible;
    }

    .topbar .nav > a {
        justify-content: center;
        min-height: 38px;
    }

    .topbar .nav-actions {
        grid-column: 1 / -1;
        padding-block: 6px 8px;
    }
}

@media (max-width: 620px) {
    .topbar .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .topbar .nav-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .topbar .nav .nav-actions a {
        min-height: 44px;
        padding-inline: 7px;
    }
}
