﻿

.slider-container {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding: 10px 0 10px 0; /* только сверху и снизу */
    scroll-behavior: smooth;
}
.tile {
    flex: 0 0 200px;
    height: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 8px rgb(0 0 0 / 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}
     

        .tile:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgb(0 0 0 / 0.2);
        }

        .tile img {
            width: 200px;
            height: 100px;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            object-fit: cover;
            display: block;
            position: relative;
        }

        .tile-title {
            position: relative;
            /*background: rgba(0, 0, 0, 0.5);*/
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
            padding: 4px 8px;
            width: 100%;
            box-sizing: border-box;
            /* border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px; */
            /* Ограничение высоты для 2 строк с переносом */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.25;
            /* height: 2.4em;
            bottom: 30px; */
            text-shadow: 0 .5px 2px rgba(0, 0, 0, 0.56);
            white-space: normal;
            margin-top: -50px;
        }

        .tile-description {

            padding: 4px 12px 0 12px;
            font-size: 0.9rem;
            color: #333;
            height: 3.6em;
            /* 3 строки по 1.2em */
            line-height: 1.1;
            height: 85px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
            white-space: pre-line;
        }

        .tile-category {
            padding: 0 12px 5px 12px;
            border-top: 0.5px solid rgba(0, 0, 0, 0.50);
            background: rgba(0, 0, 0, 0.05);
            font-size: 0.7rem;
            color: #666;
            height: 15px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            vertical-align: bottom;
        }