/* ==================================================
   НАШИ РАБОТЫ — КАРТОЧКИ
================================================== */

.mouldings {
    width: 100%;
    margin-top: 46px;
}

.mouldings-inner {
    width: 100%;
}


/* ==================================================
   ЗАГОЛОВОК РАЗДЕЛА
================================================== */

.section_heading {
    margin-bottom: 26px;
}

.section_title_color {
    margin: 0;

    color: #1d2027;

    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.section_title_color span {
    color: var(--color-accent);
}


/* ==================================================
   СЕТКА
================================================== */

.moulding_row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/* ==================================================
   КАРТОЧКА
================================================== */

.moulding_item {
    min-width: 0;

    background: #ffffff;

    border: 1px solid var(--color-border);
    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 4px 16px rgba(20, 25, 38, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.moulding_item:hover {
    transform: translateY(-4px);

    border-color: #d6dbea;

    box-shadow:
        0 14px 32px rgba(20, 25, 38, 0.12);
}


/* ==================================================
   ССЫЛКА
================================================== */

.moulding_link {
    display: flex;
    flex-direction: column;

    height: 100%;

    color: inherit;
    text-decoration: none;
}

.moulding_link:hover {
    color: inherit;
    text-decoration: none;
}


/* ==================================================
   ФОТО
================================================== */

.moulding_image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eef0f4;
}

.moulding_img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.moulding_item:hover .moulding_img {
    transform: scale(1.035);
}


/* ==================================================
   ЛЁГКИЙ ГРАДИЕНТ НА ФОТО
================================================== */

.gradientbanimg {
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 65%,
            rgba(0, 0, 0, 0.08) 100%
        );
}


/* ==================================================
   НАЗВАНИЕ
================================================== */

.card_txt {
    display: block;

    padding: 18px 20px 20px;

    color: #252933;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;

    transition: color 0.2s ease;
}

.moulding_item:hover .card_txt {
    color: var(--color-accent);
}



.moulding_item .moulding_link,
.moulding_item .moulding_link:link,
.moulding_item .moulding_link:visited,
.moulding_item .moulding_link:hover,
.moulding_item .moulding_link:active,
.moulding_item .moulding_link:focus,
.moulding_item .moulding_link .card_txt {
    text-decoration: none !important;
}


/* ==================================================
   ПЛАНШЕТ
================================================== */

@media (max-width: 900px) {

    .moulding_row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}


/* ==================================================
   МОБИЛЬНЫЙ
================================================== */

@media (max-width: 600px) {

    .mouldings {
        margin-top: 34px;
    }

    .section_heading {
        margin-bottom: 20px;
    }

    .moulding_row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .moulding_item {
        border-radius: 12px;
    }

    .card_txt {
        padding: 15px 16px 17px;

        font-size: 16px;
    }
}