/* Стили для фронтенда */
.card-block {
    display: block;
    max-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
}

.card-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.card-block__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.card-block:hover .card-block__image img {
    transform: scale(1.05);
}

.card-block__title {
    padding: 20px;
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .card-block {
        max-width: 100%;
    }
    
    .card-block__image {
        height: 180px;
    }
    
    .card-block__title {
        padding: 15px;
        font-size: 1.1em;
    }
}

/* Стили для карточки без ссылки */
.card-block:not([href]) {
    cursor: default;
}

.card-block:not([href]):hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-block:not([href]) .card-block__image img {
    transform: none;
}