/* Стили для кастомной шапки слайдера */
.k174-head-text {
    max-width: 600px;
}
.k174-gallery-subtitle {
    margin: 0;
    color: var(--k174-muted, #4B5563);
    font-size: 15px;
}
.k174-gallery-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.k174-gallery-counter {
    font-size: 15px;
    font-weight: 700;
    color: var(--k174-ink, #111827);
    background: #fff;
    border-radius: 8px;
    padding: 10px 16px;
    box-shadow: var(--k174-shadow-sm, 0 2px 10px rgba(17,24,39,.05));
}
.k174-gallery-arrow {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--k174-ink, #111827);
    box-shadow: var(--k174-shadow-sm, 0 2px 10px rgba(17,24,39,.05));
    transition: background 0.2s, opacity 0.2s;
}
.k174-gallery-arrow:hover {
    background: var(--k174-gray, #F3F5F8);
}
.k174-gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Контейнер Swiper */
.k174-gallery-swiper {
    width: 100%;
    overflow: visible; /* Чтобы тени от карточек не обрезались */
}
.k174-gallery-swiper .swiper-slide {
    width: 500px; /* Ширина карточки, как на макете */
    height: auto;
}
.k174-gallery-tile {
    display: block;
    position: relative;
    border-radius: var(--k174-radius-lg, 16px);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #E5E7EB;
    text-decoration: none;
}
.k174-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.k174-gallery-tile:hover img {
    transform: scale(1.04);
}
.k174-gallery-caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.8);
    z-index: 2;
    pointer-events: none;
	padding: 5px 10px;
	background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.k174-gallery-plus {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 28px;
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

/* Пагинация (точки) */
.k174-gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.k174-gallery-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #CBD5E1;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s;
    margin: 0 !important;
}
.k174-gallery-pagination .swiper-pagination-bullet-active {
    background: var(--k174-accent, #D9532F);
    width: 24px;
    border-radius: 4px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .k174-gallery-swiper .swiper-slide {
        width: 280px;
    }
    .k174-section-head { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 16px;
    }
}
@media (max-width: 480px) {
    .k174-gallery-swiper .swiper-slide {
        width: 85vw; /* На мобильных карточка занимает почти весь экран */
    }
}

/* ... остальные стили остаются без изменений ... */

/* Исправление пагинации: убираем абсолютное позиционирование */
.k174-gallery-pagination {
    position: static !important; /* Перебиваем стили Swiper */
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    width: 100%;
}

/* Если контейнер слайдера имеет overflow: visible, пагинация может перекрываться */
/* Убедимся, что родитель не создаёт проблем */
.k174-container {
    position: relative; /* На всякий случай, чтобы пагинация не улетала, если position: static не сработает */
}