h1{
    font-family: tilda;
    font-size: 40px;
    margin-top: 60px;
    text-align: center;
    color: black;
}

.container{
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
}

main{
    margin-bottom: 100px;
}

/*___________________________________________________________*/

.card {
    width: 100%;
    height: 490px;
    margin-top: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.8s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card__image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    flex: 0 0 auto;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.card__image img:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.card:hover .card__image img:nth-child(2) {
    opacity: 1;
}

.card:hover .card__image img:nth-child(3) {
    opacity: 1;
    transition-delay: 0.8s;
}

.card__info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card__name {
    font-family: tilda;
    font-size: 16px;
    font-weight: 500;
    color: black;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.card__price {
    font-family: tilda;
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-top: auto; 
}