
.carousel {
    position: relative;
    /*width: 1220px;*/
    width: 100%;
    height: 780px;
}

.nav-container {
    position: absolute;
    right: 0;
    bottom: 400px;
    display: flex;
    gap: 16px;
    z-index: 5;
    margin-top: 30px;
}

.nav {
    background: #fff;
    color: #222;
    border: 1px solid #222;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav:hover {
    background: #222;
    color: #fff
}

.cards-wrapper {
    overflow: hidden;
    height: 100%;
    padding-top: 70px;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 95%, rgba(0,0,0,0));
}

.cards-container {
    display: flex;
    align-items: flex-end;
    height: 100%;
    transition: transform 0.5s ease;
    gap: 20px;
}

.card {
    flex-shrink: 0;
    width: 237.581px;
    height: 360px;
    /*background: white;*/
    border-radius: 12px;
    /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /*padding: 16px;*/
    /*opacity: 0.7;*/
    transition: all 0.4s ease;
}

.card.active {
    width: 491px;
    height: 744px;
    opacity: 1;
    z-index: 2;
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 18px;
    margin: 8px 0;
    text-align: center;
}

.card p {
    font-size: 14px;
    color: #444;
    text-align: center;
}
@media (max-width: 1024px) {
    .carousel {
        display: none;
    }
}