
.front-main{
    background:white;
}

.home-banners {
    width: 100%;
    margin-top: 30px;
}

.home-banners__container {
    margin: 0 auto;
}

.home-banners__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, minmax(248px, auto));
    gap: 12px;
}

/* Ячейки */
.home-banners__cell {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

/* Слайдер 1 - занимает 3 колонки, строка 1 */
.home-banners__cell--slider-1 {
    grid-column: span 3 / span 3;
    grid-row: 1;
}

/* Статичные блоки строка 1 */
.home-banners__cell--div2 {
    grid-column-start: 4;
    grid-row: 1;
}

.home-banners__cell--div3 {
    grid-column-start: 5;
    grid-row: 1;
}

.home-banners__cell--div4 {
    grid-column-start: 6;
    grid-row: 1;
}

/* Статичные блоки строка 2 */
.home-banners__cell--div5 {
    grid-column-start: 1;
    grid-row: 2;
}

.home-banners__cell--div6 {
    grid-column-start: 2;
    grid-row: 2;
}

.home-banners__cell--div7 {
    grid-column-start: 3;
    grid-row: 2;
}

.home-banners__cell--div8 {
    grid-column-start: 4;
    grid-row: 2;
}

/* Слайдер 2 - занимает 2 колонки, строка 2 */
.home-banners__cell--slider-2 {
    grid-column: span 2 / span 2;
    grid-column-start: 5;
    grid-row: 2;
}


/* --------------------------------------------------------------------------
   Desktop Medium (768px – 1199px): высота 202px, gap 20px (горизонтальный)
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) and (min-width: 769px) {
    .home-banners__grid {
        grid-template-rows: repeat(2, minmax(202px, auto));
        column-gap: 20px;
        row-gap: 12px;
    }
}


/* --------------------------------------------------------------------------
   Mobile (<=768px)
   3 колонки × 4 строки, высота строки 140px, gap 16px (горизонтальный)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .home-banners__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, minmax(140px, auto));
        column-gap: 16px;
        row-gap: 12px;
    }

    /* Слайдер 1 - span 3, строка 1 */
    .home-banners__cell--slider-1 {
        grid-column: span 3 / span 3;
        grid-row: 1;
    }

    /* Строка 2: div2, div3, div4 */
    .home-banners__cell--div2 {
        grid-column-start: 1;
        grid-row: 2;
    }

    .home-banners__cell--div3 {
        grid-column-start: 2;
        grid-row: 2;
    }

    .home-banners__cell--div4 {
        grid-column-start: 3;
        grid-row: 2;
    }

    /* Строка 3: div5, div6, div7 */
    .home-banners__cell--div5 {
        grid-column-start: 1;
        grid-row: 3;
    }

    .home-banners__cell--div6 {
        grid-column-start: 2;
        grid-row: 3;
    }

    .home-banners__cell--div7 {
        grid-column-start: 3;
        grid-row: 3;
    }

    .home-banners__cell--div8 {
        grid-column-start: 1;
        grid-row: 4;
    }

    /* Строка 4: слайдер 2 - span 2 */
    .home-banners__cell--slider-2 {
        grid-column: span 2 / span 2;
        grid-column-start: 2;
        grid-row: 4;
    }
}


/* ==========================================================================
   Слайдер 1
   ========================================================================== */

.home-banners__swiper-1 {
    width: 100%;
    height: 100%;
}

.home-banners__slide-1 {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    padding: 33px 63px 33px 24px;
    box-sizing: border-box;
    position: relative;
}

/* Левая колонка: текст + кнопки */
.home-banners__slide-1-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    z-index: 1;
    position: relative;
    height: 100%;
}

.home-banners__slide-1-title {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(247, 247, 247, 1);
}

.home-banners__slide-1-subtitle {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(247, 247, 247, 1);
}

/* Кнопки-теги */
.home-banners__slide-1-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.home-banners__slide-1-btn {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 4px;
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(16, 24, 40, 1);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
    backdrop-filter: blur(4px);
}

.home-banners__slide-1-btn:hover {
    border-color: rgba(255, 255, 255, 0.8);
}

/* Правая колонка: изображение */
.home-banners__slide-1-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}
.home-banners__slide-1-image picture{
    height:100%;
    width: 100%;
}

.home-banners__slide-1-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination */
.home-banners__pagination-1 {
    bottom: 10px !important;
    left: 0;
    right: 0;
    text-align: left;
    padding-left: 28px;
}

.home-banners__pagination-1 .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.home-banners__pagination-1 .swiper-pagination-bullet-active {
    background: #fff;
}

/* Адаптив слайдера 1 */
@media (max-width: 1199px) {
    .home-banners__slide-1 {
        padding: 32px 21px 32px 16px;
    }

    .home-banners__slide-1-title {
        font-size: 18px;
    }
    .home-banners__slide-1-subtitle{
        font-size: 13px;
    }

    .home-banners__slide-1-buttons{
        gap: 8px;
    }

    .home-banners__slide-1-btn {
        font-size: 11px;
        padding: 1px 9px;
    }
}

@media (max-width: 768px) {
    .home-banners__slide-1 {
        padding: 12px 14px;
    }

    .home-banners__slide-1-title {
        font-size: 18px;
    }

    .home-banners__slide-1-subtitle {
        font-size: 11px;
    }

    .home-banners__slide-1-btn {
        font-size: 8px;
        padding: 1px 6px;
    }

    .home-banners__slide-1-buttons {
        gap: 5px;
    }
}


/* ==========================================================================
   Статичные блоки
   ========================================================================== */

.home-banners__static-block {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
    transition: transform 0.2s;
}

/* Фоновое изображение */
.home-banners__static-block-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-banners__static-block-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Текстовый слой поверх */
.home-banners__static-block-body {
    position: relative;
    z-index: 1;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

.home-banners__static-block-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    color: rgba(11, 16, 26, 1);
}

.home-banners__static-block-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(89, 102, 125, 1);
}

/* Адаптив статичных блоков */
@media (max-width: 1199px) {
    .home-banners__static-block-body {
        padding: 12px;
    }

    .home-banners__static-block-title {
        font-size: 9px;
    }

    .home-banners__static-block-text {
        font-size: 7px;
    }
}

@media (max-width: 768px) {
    .home-banners__static-block-body {
        padding: 8px 10px;
    }

    .home-banners__static-block-title {
        font-size: 9px;
    }
    .home-banners__static-block-body{
        gap:3px;
    }
}
/* Модификатор светлого текста */
.home-banners__cell--text-light .home-banners__static-block-title {
    color: #fff;
}

.home-banners__cell--text-light .home-banners__static-block-text {
    color: rgba(255, 255, 255, 0.85);
}


/* ==========================================================================
   Слайдер 2 (баннеры)
   ========================================================================== */

.home-banners__swiper-2 {
    width: 100%;
    height: 100%;
}

.home-banners__slide-2 {
    height: 100%;
}

.home-banners__slide-2-inner {
    display: block !important;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border-radius: inherit;
}

/* Фон баннера */
.home-banners__slide-2-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-banners__slide-2-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Текст поверх */
.home-banners__slide-2-content {
    position: relative;
    z-index: 1;
    padding: 63px 20px 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-banners__slide-2-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: rgba(247, 247, 247, 1);
}

/* Pagination */
.home-banners__pagination-2 {
    bottom: 8px !important;
}

.home-banners__pagination-2 .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.home-banners__pagination-2 .swiper-pagination-bullet-active {
    background: #fff;
}

/* Адаптив слайдера 2 */
@media (max-width: 1199px) {
    .home-banners__slide-2-title {
        font-size: 13px;
    }

    .home-banners__slide-2-content {
        padding: 53px 16px 20px;
    }
}

@media (max-width: 768px) {
    .home-banners__slide-2-title {
        font-size: 10px;
    }

    .home-banners__slide-2-content {
        padding: 35px 10px 20px;
    }
}

/*
Categories slider overwrite
 */
.categories-custom__bottom.categories-custom__bottom--slider{
    display: block;
}
.categories-custom__bottom--slider {
    gap: 12px;
}
.categories-custom__bottom--slider-wrapper{
    position: relative;
}

.categories-custom__bottom--slider>* {
    grid-area: auto;
}

.categories-custom__bottom--slider .categories-custom__card {
    padding: 20px;
    min-width: auto;
}

.categories-custom__bottom--slider h4 {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
}

.categories-custom__bottom--slider .categories-custom__card-subtitle {
    font-weight: 500;
    font-size: 11px;
    line-height: 140%;
}

.categories-custom__bottom--slider .link-custom {
    display: none;
}

.categories-custom__bottom--slider .categories-custom__card-image {
    bottom: 0;
    transform: none;
    right: 20px;
    max-width: 100%;
    z-index: 0;
}
@media screen and (max-width: 817px) {
    .categories-custom__bottom--slider .categories-custom__card-image {
        min-width: auto;
        right:5px
    }
}
.categories-custom__bottom--slider .categories-custom__card:hover{
    outline:none;
}
@media (max-width: 1024px) {
    .categories-custom__bottom--slider h4 {
        font-weight: 500;
        font-size: 11px;
        line-height: 130%;
    }
    .categories-custom__bottom--slider .categories-custom__card-subtitle {
        font-weight: 500;
        font-size: 8px;
    }
    .categories-custom__bottom--slider .categories-custom__card{
        padding:12px;
        min-height:140px;
    }
}
@media (max-width: 768px) {
    .categories-custom__bottom--slider h4 {
        font-size: 9px;
    }
    .categories-custom__bottom--slider .categories-custom__card-subtitle {
        font-size: 7px;
    }
    .categories-custom__bottom--slider .categories-custom__card{
        padding:10px;
    }
}
.btn-custom-circle[data-js-front-categories-slider-next] {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    right: -30px;
}

.btn-custom-circle[data-js-front-categories-slider-before] {
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: -30px;
}

.categories-custom__bottom {
    position: relative;
}