/*
 * Вёрстка баннеров — правила, которых нет в site.css темы: сама карточка
 * (`.banner`), её обёртка (`.banners`) и полоса текста поверх картинки
 * (`.banner__text`). Файлом, а не инлайновым `<style>` в слоте `head`:
 * правила ехали бы на КАЖДОЙ странице витрины лишним килобайтом без кэша
 * (та же причина, что у `blog.css`, задача 6 плана 3C).
 */
.banners {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0 0 1.2rem;
}

.banner {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    background: var(--surface, #f3f3f3);
}

.banner__image {
    display: block;
    width: 100%;
    height: auto;
}

.banner__text {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.2rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    color: #fff;
}

.banner__title {
    font-size: 1.1rem;
    font-weight: 600;
}

.banner__subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}
