.laysy-cards-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem; /* Отступ между блоками */
}
.laysy-cards-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1em;
}
.laysy-card {
    height: 520px;
     /*background-size: cover;
    background-position: center;*/
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;
    border-radius: 0px;
    display: flex;
    align-items: flex-end;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.laysy-card-text {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    padding: 1em;
    margin: 0 1em 1em 1em;
    width: calc(100% - 2em);
    color: #333;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), calc(100% - 32px) 100%, 0 100%);
    transition: all 0.3s ease;
    min-height: 340px; /* Минимальная высота */
    display: flex;
    flex-direction: column;
    /*justify-content: space-between;*/
    border:2px solid #ba243b;
}

.laysy-card:hover .laysy-card-text {
    background-size: 100%;
    background-position: top;
    background-repeat: no-repeat;
    background: #ba243b;
    color: white; /* Белый текст при наведении */
}

.laysy-card-text h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
}

.laysy-card-text p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}
.laysy-card-text a {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    text-decoration: none;
    color:#000000;
}

.laysy-card-text:hover h3 {
    color:#ffffff;
}

.laysy-card-text:hover h6 {
    color:#ffffff;
}

.laysy-card-text:hover p {
    color:#ffffff;
}

.laysy-card-text:hover a {
    color:#ffffff;
    text-decoration: none;
}

/* Индикатор свайпа для мобильных */
.swipe-indicator {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7em;
    z-index: 10;
    pointer-events: none;
}

/* Большие экраны (≥992px) - 4 карточки */
@media (min-width: 992px) {
    .laysy-card {
        flex: 0 0 calc(25% - 0.75em);
        min-width: calc(25% - 0.75em);
    }
}

/* Средние экраны (≥768px) - 3 карточки */
@media (min-width: 768px) and (max-width: 991px) {
    .laysy-card {
        flex: 0 0 calc(33.333% - 0.67em);
        min-width: calc(33.333% - 0.67em);
    }
}

/* Маленькие экраны (≥576px) - 1 карточка */
@media (min-width: 576px) and (max-width: 767px) {
    .laysy-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .laysy-button-prev,
    .laysy-button-next {
        display: none !important;
    }
    .swipe-indicator {
        display: block;
    }
}

/* Очень маленькие экраны (<576px) - 1 карточка */
@media (max-width: 575px) {
    .laysy-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .laysy-button-prev,
    .laysy-button-next {
        display: none !important;
    }
    .swipe-indicator {
        display: block;
    }
}

.laysy-button-prev, .laysy-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}
.laysy-button-prev {
    left: 10px;
}
.laysy-button-next {
    right: 10px;
}
.laysy-button-prev:hover, .laysy-button-next:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-title {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.popup-image a{
    text-decoration:none !important;
    color:#000000 !important;
}
.popup-image:hover a{
    text-decoration:none !important;
    color:#ffffff !important;
}
.fix-height{
    min-height:150px !important;
}
.fix-height2{
    min-height:230px !important;
   
}
.fix-height3{
    min-height:70px !important;
    
}