.product-cards {
    padding: 68px 0 56px;
    color: #4c4c4c;
    font-family: Raleway, sans-serif;
}

.product-cards__eyebrow {
    margin: 0 0 14px;
    color: #b59bbd;
    font: 400 20px/1.2 Roboto, sans-serif;
}

.product-cards__title {
    margin: 0 0 50px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.product-cards__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.product-card {
    display: flex;
    min-width: 0;
    min-height: 223px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 12px 28px;
    border-radius: 5px;
    background: var(--product-color, #b69abe);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card--violet { --product-color: #b69abe; }
.product-card--orange { --product-color: #ffbd4d; }
.product-card--green { --product-color: #7cbf4f; }
.product-card--blue { --product-color: #6a8fc7; }
.product-card--cyan { --product-color: #43b3c3; }

.product-card__image {
    display: block;
    width: 131px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.product-card__image--balconies {
    width: 119px;
}

.product-card__title {
    max-width: 170px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    white-space: pre-line;
}

.product-card:hover,
.product-card:focus-visible {
    color: #fff;
    box-shadow: inset 0 0 0 2px rgb(255 255 255 / 65%);
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 5px 12px rgb(0 0 0 / 12%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        transition: none;
    }
}

.product-card:focus-visible {
    outline: 2px solid #515151;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .product-cards__eyebrow {
        font-size: 17px;
    }

    .product-cards__title {
        margin-bottom: 30px;
        font-size: 30px;
    }

    .product-cards__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .product-cards {
        padding: 42px 0 36px;
    }

    .product-cards__eyebrow {
        font-size: 12px;
        line-height: 16px;
    }

    .product-cards__title {
        margin-bottom: 25px;
        font-size: 24px;
    }

    .product-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-card {
        min-height: 190px;
        gap: 17px;
        padding: 20px 10px;
    }

    .product-card__image {
        width: 100px;
    }

    .product-card__image--balconies {
        width: calc(100px * 119 / 131);
    }

    .product-card__title {
        font-size: 14px;
        line-height: 18px;
    }
}
