.tile-slider-module {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 1200px;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tile-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    flex: 1;
}

.tile-slider-track {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    gap: 10px;
    justify-content: flex-start;
}

.tile-item {
    flex: 0 0 auto;
    position: relative;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.tile-image {
    width: 100%;
    height: 70%;
    overflow: hidden;
}

.tile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tile-title {
    height: 30%;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.tile-title h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

/* Hover Effects */
.tile-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tile-item[data-hover-effect="zoom"]:hover .tile-image img {
    transform: scale(1.1);
}

.tile-item[data-hover-effect="darken"]:hover .tile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.tile-item[data-hover-effect="colorize"]:hover .tile-image img {
    filter: sepia(1) hue-rotate(45deg) saturate(1.5);
    transition: filter 0.3s ease;
}

/* Controls - теперь по бокам модуля */
.tile-slider-controls {
    display: flex;
    align-items: center;
    gap: 10px;
	margin:10px;
}

.tile-slider-prev, .tile-slider-next {
    background: rgba(255,255,255,0.9);
    border: 2px solid #ddd;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tile-slider-prev:hover, .tile-slider-next:hover {
    background: rgba(255,255,255,1);
    border-color: #0D47A1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.tile-slider-prev:active, .tile-slider-next:active {
    transform: scale(0.95);
}

/* Анимация для плавности */
.tile-slider-track {
    will-change: transform;
}

/* Responsive */
@media (max-width: 768px) {
    .tile-slider-module {
        gap: 8px;
    }
    
    .tile-slider-prev, .tile-slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .tile-title h3 {
        font-size: 1em;
    }
    
    .tile-slider-track {
        gap: 5px;
    }
    
    /* На мобильных можно скрыть кнопки или сделать меньше */
    .tile-slider-controls {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .tile-slider-module {
        
        gap: 10px;
    }
    
    .tile-slider-controls {
        /* order: -1; */
        /* width: 100%; */
        justify-content: center;
    }
    
    .tile-slider-prev, .tile-slider-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Скрыть контролы если мало элементов */
.tile-slider-module:has(.tile-item:only-child) .tile-slider-controls {
    display: none;
}

/* Стили для неактивных кнопок (опционально) */
.tile-slider-prev.disabled, 
.tile-slider-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}