/**
 * =====================================================
 * СТАТЬИ
 * =====================================================
 */

.posts-section {
    position: relative;
    padding: 90px 0;
}

.posts-inner {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}


/*
 * =====================================================
 * ЗАГОЛОВОК
 * =====================================================
 */

.posts-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 42px;
}

.posts-heading {
    max-width: 620px;
}

.posts-kicker {
    display: block;
    margin-bottom: 10px;
    color: #cca444;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.posts-title {
    margin: 0;
    color: #5c1a4f;
    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 700;
}

.posts-intro {
    max-width: 560px;
    margin: 14px 0 0;
    color: #5c4b57;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}


/*
 * =====================================================
 * ФИЛЬТРЫ
 * =====================================================
 */

.posts-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    max-width: 520px;
}

.posts-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 16px;
    border: 1px solid rgba(92, 26, 79, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: #5c1a4f;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.posts-tag:hover {
    border-color: #cca444;
    transform: translateY(-1px);
}

.posts-tag.is-active {
    border-color: #cca444;
    background: #5c1a4f;
    color: #ffffff;
}


/*
 * =====================================================
 * СЕТКА
 * =====================================================
 */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}


/*
 * =====================================================
 * КАРТОЧКА
 * =====================================================
 */

.post-card {
    min-width: 0;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.post-card.is-hidden {
    display: none;
}

.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(92, 26, 79, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(249, 241, 247, 0.96)
        );
    color: inherit;
    text-decoration: none;
    box-shadow:
        0 12px 32px rgba(92, 26, 79, 0.09);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.post-card-link:hover {
    transform: translateY(-5px);
    border-color: rgba(204, 164, 68, 0.35);
    box-shadow:
        0 20px 45px rgba(92, 26, 79, 0.15);
}


/*
 * =====================================================
 * ИЗОБРАЖЕНИЕ
 * =====================================================
 */

.post-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 1;
    overflow: hidden;
    background: #eee5eb;
}

.post-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.post-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.post-card-link:hover .post-card-image img {
    transform: scale(1.045);
    filter: brightness(0.9);
}

.post-card-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at center,
            rgba(204, 164, 68, 0.2),
            rgba(92, 26, 79, 0.1)
        );
}

.post-card-image-empty span {
    color: #cca444;
    font-size: 32px;
}


/*
 * =====================================================
 * НИЖНЯЯ ЧАСТЬ
 * =====================================================
 */

.post-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.post-card-title {
    margin: 0;
    color: #5c1a4f;
    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}


/*
 * =====================================================
 * КНОПКА ЧИТАТЬ
 * =====================================================
 */

.post-card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            #cca444,
            #dfbc63
        );
    color: #5c1a4f;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow:
        0 7px 18px rgba(204, 164, 68, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.post-card-link:hover .post-card-button {
    transform: translateY(-1px);
    box-shadow:
        0 10px 23px rgba(204, 164, 68, 0.3);
}

.post-card-button span {
    font-size: 16px;
}


/*
 * =====================================================
 * АДАПТИВ
 * =====================================================
 */

@media (max-width: 900px) {

    .posts-header {
        display: block;
    }

    .posts-tags {
        justify-content: flex-start;
        margin-top: 25px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .posts-section {
        padding: 65px 0;
    }

    .posts-inner {
        width: min(100% - 28px, 1200px);
    }

    .posts-title {
        font-size: 30px;
    }

    .posts-intro {
        font-size: 14px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .post-card-link {
        border-radius: 14px;
    }

    .post-card-content {
        padding: 17px;
    }

    .post-card-title {
        font-size: 16px;
    }

}

.posts-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


.posts-all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #5e1d53;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;

    white-space: nowrap;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}


.posts-all-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 1px solid #cca444;
    border-radius: 50%;

    color: #cca444;

    font-size: 16px;
    line-height: 1;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}


.posts-all-link:hover {
    color: #cca444;
}


.posts-all-link:hover .posts-all-link-arrow {
    background-color: #cca444;
    color: #fff;

    transform: translate(3px, -3px);
}

@media (max-width: 700px) {

    .posts-title-row {
        gap: 15px;
    }

    .posts-all-link span:first-child {
        display: none;
    }

}

/* =========================================================
   СВОЙСТВА КАМНЯ — КОМПАКТНЫЙ ВАРИАНТ
   ========================================================= */

.stone-properties {
    position: relative;

    margin-top: 42px;
    padding: 24px 28px;

    border: 1px solid rgba(204, 164, 68, 0.34);
    border-radius: 20px;

    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(204, 164, 68, 0.08),
            transparent 25%
        ),
        radial-gradient(
            circle at 92% 90%,
            rgba(94, 29, 83, 0.06),
            transparent 28%
        ),
        rgba(255, 255, 255, 0.58);

    box-shadow:
        0 10px 30px rgba(94, 29, 83, 0.06);

    overflow: hidden;
}

.stone-properties::before {
    content: "";

    position: absolute;

    top: -70px;
    right: -70px;

    width: 140px;
    height: 140px;

    border-radius: 50%;

    background: rgba(204, 164, 68, 0.07);

    filter: blur(8px);

    pointer-events: none;
}


/* ---------------------------------------------------------
   ЗАГОЛОВОК
   --------------------------------------------------------- */

.stone-properties-heading {
    position: relative;

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 20px;
}

.stone-properties-heading-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border: 1px solid rgba(204, 164, 68, 0.45);
    border-radius: 50%;

    color: #cca444;

    font-size: 17px;

    background: rgba(255, 255, 255, 0.55);
}

.stone-properties-kicker {
    display: block;

    margin-bottom: 2px;

    color: #cca444;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stone-properties-title {
    margin: 0;

    color: #5e1d53;

    font-size: 22px;
    line-height: 1.15;

    letter-spacing: -0.02em;
}


/* ---------------------------------------------------------
   ГРУППЫ
   --------------------------------------------------------- */

.stone-properties-group {
    position: relative;

    margin-top: 18px;
}

.stone-properties-group-title {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 0 9px;

    color: #5e1d53;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.02em;
}

.stone-properties-group-title span {
    color: #cca444;

    font-size: 15px;
}


/* ---------------------------------------------------------
   КАРТОЧКИ
   --------------------------------------------------------- */

.stone-properties-grid {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 7px;
}

.stone-elements-grid {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}

.stone-property-item {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    min-height: 38px;

    padding: 6px 8px;

    border: 1px solid rgba(204, 164, 68, 0.22);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.58);

    color: #5e1d53;

    font-size: 12px;
    font-weight: 600;

    box-shadow:
        0 2px 8px rgba(94, 29, 83, 0.025);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.stone-property-item:hover {
    transform: translateY(-2px);

    border-color:
        rgba(204, 164, 68, 0.62);

    background:
        rgba(204, 164, 68, 0.07);
}

.stone-property-symbol {
    color: #cca444;

    font-size: 16px;

    line-height: 1;
}

.stone-property-name {
    white-space: nowrap;
}


/* ---------------------------------------------------------
   РАЗДЕЛЕНИЕ ГРУПП
   --------------------------------------------------------- */

.stone-properties-group + .stone-properties-group {
    margin-top: 18px;
    padding-top: 17px;

    border-top:
        1px solid rgba(204, 164, 68, 0.13);
}


/* ---------------------------------------------------------
   ПЛАНШЕТ
   --------------------------------------------------------- */

@media (max-width: 850px) {

    .stone-properties-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .stone-elements-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}


/* ---------------------------------------------------------
   МОБИЛЬНЫЙ
   --------------------------------------------------------- */

@media (max-width: 560px) {

    .stone-properties {
        margin-top: 32px;
        padding: 20px 16px;

        border-radius: 17px;
    }

    .stone-properties-heading {
        gap: 10px;

        margin-bottom: 17px;
    }

    .stone-properties-heading-symbol {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 15px;
    }

    .stone-properties-title {
        font-size: 20px;
    }

    .stone-properties-grid,
    .stone-elements-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stone-property-item {
        min-height: 36px;

        padding: 6px;

        font-size: 11px;
    }

    .stone-property-symbol {
        font-size: 15px;
    }

}


/* ---------------------------------------------------------
   ОЧЕНЬ УЗКИЙ ЭКРАН
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .stone-properties-grid,
    .stone-elements-grid {
        grid-template-columns: 1fr;
    }

}