/* diamantcatalog - homepage banner */
.diamant-catalog {
    background: #f4efe9;
    padding: 56px 0;
}

.diamant-catalog__row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) minmax(240px, max-content);
    grid-template-areas: "cover text actions";
    align-items: center;
    gap: 32px 48px;
}

.diamant-catalog--no-cover .diamant-catalog__row {
    grid-template-columns: minmax(0, 1fr) minmax(240px, max-content);
    grid-template-areas: "text actions";
}

.diamant-catalog__cover {
    grid-area: cover;
}

.diamant-catalog__cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 14px 32px rgba(0, 0, 0, 0.22);
    transform: rotate(-2deg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
    .diamant-catalog:hover .diamant-catalog__cover img {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.10), 0 26px 48px rgba(0, 0, 0, 0.28);
        transform: rotate(0deg) translateY(-8px) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .diamant-catalog__cover img {
        transition: none;
    }
}

.diamant-catalog__text {
    grid-area: text;
}

.diamant-catalog__title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 700;
    color: #222222;
}

.diamant-catalog__lead {
    max-width: 560px;
    margin: 0;
    font-size: 16px;
    color: #555555;
}

.diamant-catalog__actions {
    grid-area: actions;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diamant-catalog__actions .btn {
    height: auto;
    min-height: 50px;
    padding: 12px 24px;
    line-height: 1.4;
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
}

.diamant-catalog__actions .diamant-catalog__download {
    border: 0;
    border-radius: 0;
    background: #222222;
    color: #ffffff;
}

.diamant-catalog__actions .diamant-catalog__download:hover,
.diamant-catalog__actions .diamant-catalog__download:focus {
    background: #000000;
    color: #ffffff;
}

.diamant-catalog-fancybox .fancybox-skin {
    padding: 0 !important;
}

/* tablet: cover on the left, text with buttons below it on the right */
@media (max-width: 991px) {
    .diamant-catalog__row {
        grid-template-columns: 150px minmax(0, 1fr);
        grid-template-areas:
            "cover text"
            "cover actions";
        align-items: start;
        gap: 24px 40px;
    }

    .diamant-catalog--no-cover .diamant-catalog__row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "text"
            "actions";
    }

    .diamant-catalog__cover {
        align-self: center;
    }

    /* buttons side by side with equal width and height */
    .diamant-catalog__actions {
        flex-direction: row;
        align-items: stretch;
    }

    .diamant-catalog__actions .btn {
        flex: 1 1 0;
        min-width: 0;
        white-space: normal;
    }
}

/* phone: everything stacked and centered */
@media (max-width: 767px) {
    .diamant-catalog {
        padding: 40px 0;
    }

    .diamant-catalog__row,
    .diamant-catalog--no-cover .diamant-catalog__row {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "cover"
            "text"
            "actions";
        justify-items: center;
        gap: 24px;
        text-align: center;
    }

    .diamant-catalog__cover {
        width: 120px;
    }

    .diamant-catalog__title {
        font-size: 24px;
    }

    .diamant-catalog__lead {
        margin: 0 auto;
    }

    .diamant-catalog__actions {
        width: 100%;
        max-width: 560px;
    }

    .diamant-catalog__actions .btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

/* small phone: buttons stacked */
@media (max-width: 520px) {
    .diamant-catalog__cover {
        width: 100px;
    }

    .diamant-catalog__actions {
        flex-direction: column;
        max-width: 320px;
    }

    .diamant-catalog__actions .btn {
        flex: none;
    }
}
