
.comment {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    align-items: stretch; /* чтобы карточки тянулись по высоте */
    font-family: "Montserrat", sans-serif;
    margin-bottom: 15px;
    padding: 0px;

}


/* Внутреннее оформление карточки */
.comment_card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border: 1px solid #006AFF;
    background-color: rgb(248, 248, 248);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.15); 
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.comment_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.3); 
    border-color: #004FCC; /* можно чуть темнее для эффекта */
}

/* Кавычки */
.comment_card .quote {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    color: #006AFF;
    font-family: serif;
    line-height: 1;
}

/* Текст */
.comment_text {
    margin: 30px 0 20px 0;
    flex-grow: 1;
    font-size: 16px;
    color: #333;
}

/* Подвал карточки */
.comment_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.comment_footer .author {
    color: #222;
}

.comment_footer .stars {
    color: #006AFF;
    font-size: 18px;
}

/* Сетка как у тебя */
.comment_div1 {
    grid-column: span 3 / span 3;
}
.comment_div2 {
    grid-column-start: 4;
    grid-column: span 2 / span 2;
}
.comment_div3 {
    grid-row-start: 2;
    grid-column: span 2 / span 2;
}
.comment_div4 {
    grid-column: span 3 / span 3;
    grid-column-start: 3;
    grid-row-start: 2;
}

/* Адаптив */
@media (max-width: 768px) {
    .comment {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .comment_div1,
    .comment_div2,
    .comment_div3,
    .comment_div4 {
        grid-column: auto;
        grid-row: auto;
    }
}

