/* ===== Banners Grid — блок сетки баннеров ===== */

/* Основной контейнер */
.banners-grid {
    padding: 34px 0 60px 0;
    background-color: #ffffff;
    font-family: 'Inter Tight', sans-serif;
}

.banners-grid__container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 0px;
}

/* Заголовочная часть */
.banners-grid__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.banners-grid__title {
    margin: 0;
    color: #303030;
    font-size: 32px;
    font-weight: 600;
    font-family: 'Inter Tight', sans-serif;
}

.banners-grid__subtitle {
    color: #818084;
    font-size: 18px;
    margin-bottom: 30px;
}

.banners-grid__btn-all {
    color: #1481DB;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid #1481DB;
}

.banners-grid__btn-all:hover {
    background-color: #1481DB;
    color: white;
    text-decoration: none;
}

/* Сетка 4 колонки */
.banners-grid__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Элемент сетки */
.banners-grid__item {
    position: relative;
}

/* Баннер */
.banners-grid__banner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 32px;
    box-sizing: border-box;
    height: 294px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.41);
    background-blend-mode: overlay;
    text-decoration: none;
    transition: all 0.3s ease;
}

.banners-grid__banner:hover {
    background-color: rgba(0, 0, 0, 0.5);
    /*transform: translateY(-2px);*/
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* Текст на баннере */
.banners-grid__banner-label {
    color: white;
    font-size: 20px;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    word-wrap: break-word;
    max-width: 185px;
    text-decoration: none;
    line-height: 1.3;
}

/* Широкий баннер на 2 колонки */
.banners-grid__item--banner-wide {
    grid-column: span 2;
}

.banners-grid__banner--wide {
    height: 294px;
}

/* Обычный баннер на 1 колонку */
.banners-grid__banner--regular {
    height: 294px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .banners-grid__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .banners-grid__item--banner-wide {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .banners-grid__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .banners-grid__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .banners-grid__grid {
        grid-template-columns: 1fr;
    }
    
    .banners-grid__banner {
        height: 240px;
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .banners-grid {
        padding: 40px 0;
    }
    
    .banners-grid__title {
        font-size: 24px;
    }
    
    .banners-grid__banner-label {
        font-size: 18px;
    }
}