/* Layout corrections only; reuse the existing Funtik design tokens. */
@media (min-width: 601px) and (max-width: 1024px) {
    .page.wrap { padding-inline: 24px; }
    .catalog { grid-template-columns: minmax(0, 1fr); }
    .catalog > * { min-width: 0; }
    .catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .catalog__aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog__aside > .catalog__search,
    .catalog__aside > .btn,
    .catalog__aside > .type-chip,
    .catalog__aside > .filter-block:only-of-type { grid-column: 1 / -1; }
    .catalog__aside > .filter-block { min-width: 0; }
}

@media (min-width: 601px) and (max-width: 720px) {
    .catalog__grid { grid-template-columns: minmax(0, 1fr); }
}

/* The full navigation needs more room than the tablet content layout. */
@media (min-width: 881px) and (max-width: 1100px) {
    .nav__brand { min-width: 0; flex: 0 1 auto; }
    .nav__name { white-space: nowrap; }
    .nav__links { display: none; }
    .nav__actions { margin-left: auto; flex: 0 0 auto; }
    .nav__actions .btn { white-space: nowrap; }
    .nav__burger { display: grid; flex: none; }
    .nav__links.mobile-open { z-index: 60; }
    .nav__links.mobile-open .nav__link { text-align: left; }
}

/* Resizing an open compact menu must restore the regular desktop row. */
@media (min-width: 1101px) {
    .nav__links.mobile-open {
        position: static;
        flex-direction: row;
        margin: 0 auto 0 14px;
        padding: 0;
        gap: 2px;
        background: none;
        box-shadow: none;
    }
    .nav__links.mobile-open .nav__link { width: auto; }
}
