/* Контейнер для кнопок */
.custom-links {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* расстояние между кнопками */
    margin-bottom: 10px;
}

.custom-links .swiper {
    margin: 0;
}

.custom-links .swiper-button-next,
.custom-links .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-content: center;
    justify-content: center;
    background-size: 100%;
    transition: background-size .2s;
}

.custom-links .swiper-button-next:after,
.custom-links .swiper-button-prev:after {
    content: '';
}

.custom-links .swiper-button-next {
    right: -25px;
    background-image: url(/assets/img_v2/templates/sliders/str-right.svg);
    background-position: center;
}
.custom-links .swiper-button-prev {
    left: -25px;
    background-image: url(/assets/img_v2/templates/sliders/str-left.svg);
    background-position: center;
}

/* Стиль для каждой ссылки (кнопки) */
.custom-links a {
    display: inline-flex; /* чтобы центрировать текст по вертикали и горизонтали */
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 7px 12px;
    border-radius: 4px;
    background-color: #f5f5f5; /* изначальный фон */
    color: #333; /* изначальный цвет текста */
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.15px;
    text-decoration: none; /* убрать подчеркивание */
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, padding 0.2s;
    gap: 20px;
    width: fit-content;
    box-sizing: border-box;
}

/* Эффект при наведении */
.custom-links a:hover {
    background-color: #4F728E; /* цвет фона при наведении */
    color: #fff; /* цвет текста при наведении */
}

.custom-links a img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 600px) {
    .custom-links a {
        font-size: 12px;
        padding: 6px 10px;
        min-height: auto; /* чтобы не было жесткого ограничения по высоте */
        width: auto; /* ширина по содержимому */
        flex-basis: calc(50% - 10px); /* две кнопки в строке с отступом */
        text-align: center; /* текст по центру внутри ссылки */
        justify-content: center; /* центрирование содержимого внутри ссылки */
        align-items: center;
        display: flex;
    }
}