/* ====== GRID ====== */
.cards__cards {
    padding: 20px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}


/* 1200px — две широкие карточки */
@media (max-width: 1200px) {
    .cards__cards {
        padding: 0px 20px;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 600px — одна карточка */
@media (max-width: 600px) {
    .cards__cards {
        grid-template-columns: auto;
    }
}

/* ====== CARD (теперь ссылка) ====== */
.cards__card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
    color: inherit;
    transition: all 0.5s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 13px 19px;
    color: #464648;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

.cards__card:hover {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 13px 19px;
    transform: scale(1.03);
}

/* ====== INNER STRUCTURE ====== */
.cards__box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ====== GRAY TOP BLOCK ====== */
.cards__gray {
    background: #e5e5e5;
    padding: 24px;
    flex: 1;
    text-align: center;
}

.cards__gray h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.cards__gray p {
    font-size: 14px;
    color: #333;
    line-height: 1.45;
}

.cards__icon {
    margin: 16px 0;
    text-align: center;
}

.cards__icon img {
    max-width: 144px;
    height: auto;
}

/* ====== BOTTOM AREA ====== */
.cards__bottom {
    background: #E76828;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cards__card:hover .cards__bottom {
    background: #cf5c22;
}
