header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

header img.logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 15px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--tile-gap);
}

/* плитка: col=1 -> 6 колонок (2 в ряд), col=2 -> 12 колонок (1 в ряд) */
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--tile-padding);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #fff;
    min-height: 120px;
    overflow: hidden;
    isolation: isolate;
}

.tile.col-1 {
    grid-column: span 6;
    min-height: 220px;
}

.tile.col-2 {
    grid-column: span 12;
    min-height: 180px;
}

@media (max-width: 600px) {
    .tile.col-1 {
        min-height: 140px;
    }

    .tile.col-2 {
        min-height: 120px;
    }
}

@media (max-width: 300px) {
    .tile.col-1 {
        grid-column: span 12;
    }

    .tile.col-2 {
        grid-column: span 12;
    }

    .tile {
        min-height: 160px;
    }
}

.tile h2 {
    margin: 0 0 6px;
    font-size: clamp(14px, 2.2vw, 20px);
    line-height: 1.2;
}

.tile p {
    margin: 0;
    color: var(--text);
    font-size: clamp(10px, 1.6vw, 16px);
}

.tile .thumb {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: min(20vw, 180px);
    max-width: 160px;
    aspect-ratio: 1/1;
    opacity: .8;
    z-index: -1; /* уходит под текст */
}

.tile .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* мягкий заливочный фон из цвета категории */
.tile[data-bg]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--bg, #f4f4f5);
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

a.tile-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

nav.breadcrumbs {
    font-size: 14px;
    color: var(--muted);
    margin: 8px 0 18px;
}

nav.breadcrumbs a {
    color: inherit;
    text-decoration: none
}

nav.breadcrumbs a:hover {
    text-decoration: underline
}