/* =========================================================
   ТОВАРЫ
   ========================================================= */

.products-section {
    width: 100%;
    padding: 70px 0;
    background: #ffffff;
}

.products-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.products-heading {
    margin-bottom: 35px;
}

.products-title {
    margin: 0;

    font-family: Arial, sans-serif;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    color: #5e1b50;
}


/* Сетка */

.products-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;
}


/* Карточка */

.product-card {
    min-width: 0;
}


/* Изображение */

.product-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 6px;

    background: #f7f5f6;

    text-decoration: none;
}

.product-card-image-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.product-card-image:hover .product-card-image-img {
    transform: scale(1.02);
}


/* Если изображения нет */

.product-card-no-image {
    display: flex;

    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    font-size: 14px;

    color: #999999;
}


/* Информация */

.product-card-content {
    padding-top: 14px;
}

.product-card-title {
    margin: 0 0 8px;

    font-family: Arial, sans-serif;

    font-size: 17px;
    line-height: 1.3;

    font-weight: 500;
}

.product-card-title a {
    color: #333333;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #5e1b50;
}


/* Цена */

.product-card-price {
    font-family: Arial, sans-serif;

    font-size: 18px;
    line-height: 1.2;

    font-weight: 600;

    color: #5e1b50;
}


/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1000px) {

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 700px) {

    .products-section {
        padding: 50px 0;
    }

    .products-container {
        padding: 0 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .products-title {
        font-size: 27px;
    }
}


@media (max-width: 480px) {

    .products-container {
        padding: 0 15px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Метки товаров */

.products-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 22px;
}

.products-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 14px;

    border: 1px solid #5e1d53;
    border-radius: 4px;

    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 400;

    color: #5e1d53;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.products-tag:hover {
    background: #5e1d53;
    color: #ffffff;
}

.products-tag.is-active {
    background: #5e1d53;
    color: #ffffff;
}

.product-card.is-hidden {
    display: none;
}

/* =========================================================
   ТОВАРЫ
   СМЕНА ФОТО + POPUP
   ========================================================= */


/* ---------------------------------------------------------
   ОБЛАСТЬ ИЗОБРАЖЕНИЯ
   --------------------------------------------------------- */

.product-card-visual {
    position: relative;
}


/* ---------------------------------------------------------
   СМЕНА ФОТО ПРИ НАВЕДЕНИИ
   --------------------------------------------------------- */

.product-card-image-main,
.product-card-image-hover {
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.product-card-image-hover {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
}

.product-card:hover .product-card-image-main {
    opacity: 0;
}

.product-card:hover .product-card-image-hover {
    opacity: 1;
}


/* ---------------------------------------------------------
   КНОПКА «ПОДРОБНЕЕ»
   --------------------------------------------------------- */

.product-card-more {
    position: absolute;

    left: 50%;
    bottom: 20px;

    z-index: 5;

    transform: translateX(-50%);

    padding: 10px 24px;

    border: 0;
    border-radius: 4px;

    background: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;

    color: #5e1d53;

    white-space: nowrap;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease;
}

.product-card:hover .product-card-more {
    opacity: 1;
    visibility: visible;
}

.product-card-more:hover {
    background: #5e1d53;
    color: #ffffff;
}


/* =========================================================
   POPUP
   ========================================================= */

.product-popup {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.product-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ---------------------------------------------------------
   ЗАТЕМНЕНИЕ
   --------------------------------------------------------- */

.product-popup-overlay {
    position: absolute;

    inset: 0;

    background: rgba(30, 20, 28, 0.72);

    backdrop-filter: blur(3px);
}


/* ---------------------------------------------------------
   ОКНО
   --------------------------------------------------------- */

.product-popup-window {
    position: relative;

    z-index: 2;

    width: 100%;
    max-width: 1150px;
    max-height: calc(100vh - 60px);

    overflow: auto;

    background: #ffffff;

    border-radius: 8px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(20px) scale(0.98);

    transition: transform 0.3s ease;
}

.product-popup.is-open .product-popup-window {
    transform: translateY(0) scale(1);
}


/* ---------------------------------------------------------
   КРЕСТИК
   --------------------------------------------------------- */

.product-popup-close {
    position: absolute;

    top: 16px;
    right: 18px;

    z-index: 10;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 38px;
    font-weight: 300;

    color: #5e1d53;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.product-popup-close:hover {
    color: #cca444;

    transform: rotate(90deg);
}


/* =========================================================
   POPUP: ДВЕ КОЛОНКИ
   ========================================================= */

.product-popup-layout {
    display: grid;

    grid-template-columns: 55% 45%;

    min-height: 650px;
}


/* =========================================================
   ЛЕВАЯ ЧАСТЬ
   ========================================================= */

.product-popup-gallery {
    padding: 35px;

    background: #f7f5f6;
}


/* Главное изображение */

.product-popup-main-image {
    position: relative;

    width: 100%;
    height: 500px;

    overflow: hidden;

    border-radius: 6px;

    background: #ffffff;
}

.product-popup-main-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   СТРЕЛКИ ГАЛЕРЕИ
   ========================================================= */

.product-popup-arrow {
    position: absolute;

    top: 50%;

    z-index: 3;

    width: 42px;
    height: 42px;

    margin-top: -21px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 38px;

    color: #cca444;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.product-popup-prev {
    left: 15px;
}

.product-popup-next {
    right: 15px;
}

.product-popup-arrow:hover {
    background: #5e1d53;
    color: #ffffff;

    transform: scale(1.05);
}


/* =========================================================
   МИНИАТЮРЫ
   ========================================================= */

.product-popup-thumbs {
    display: flex;

    gap: 10px;

    margin-top: 15px;

    overflow-x: auto;
}

.product-popup-thumb {
    flex: 0 0 70px;

    width: 70px;
    height: 70px;

    padding: 0;

    border: 1px solid transparent;
    border-radius: 4px;

    overflow: hidden;

    background: #ffffff;

    cursor: pointer;

    opacity: 0.65;

    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.product-popup-thumb.is-active {
    border-color: #5e1d53;

    opacity: 1;
}

.product-popup-thumb:hover {
    opacity: 1;
}

.product-popup-thumb-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   ПРАВАЯ ЧАСТЬ
   ========================================================= */

.product-popup-content {
    display: flex;

    flex-direction: column;

    padding: 70px 55px 50px;
}


/* Метки */

.product-popup-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 20px;
}

.product-popup-tag {
    padding: 5px 10px;

    border: 1px solid #5e1d53;
    border-radius: 3px;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;

    color: #5e1d53;

    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* Заголовок */

.product-popup-title {
    margin: 0 35px 18px 0;

    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 500;

    color: #333333;
}


/* Цена */

.product-popup-price {
    margin-bottom: 25px;

    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;

    color: #5e1d53;
}


/* Разделитель */

.product-popup-price::after {
    display: block;

    width: 45px;
    height: 1px;

    margin-top: 22px;

    background: #cca444;

    content: "";
}


/* Описание */

.product-popup-description {
    flex: 1;

    margin-top: 5px;

    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;

    color: #555555;
}

.product-popup-description p {
    margin: 0 0 15px;
}

.product-popup-description p:last-child {
    margin-bottom: 0;
}


/* Ссылка */

.product-popup-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    align-self: flex-start;

    margin-top: 35px;

    padding: 12px 24px;

    border: 1px solid #5e1d53;
    border-radius: 4px;

    background: #5e1d53;

    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;

    color: #ffffff;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.product-popup-link:hover {
    background: #cca444;
    border-color: #cca444;

    color: #ffffff;
}


/* =========================================================
   СКРЫТЫЕ ТОВАРЫ
   ========================================================= */

.product-card.is-hidden {
    display: none;
}


/* =========================================================
   АДАПТИВ POPUP
   ========================================================= */

@media (max-width: 900px) {

    .product-popup {
        padding: 15px;
    }

    .product-popup-window {
        max-height: calc(100vh - 30px);
    }

    .product-popup-layout {
        grid-template-columns: 1fr;
    }

    .product-popup-gallery {
        padding: 25px;
    }

    .product-popup-main-image {
        height: 420px;
    }

    .product-popup-content {
        padding: 35px 30px 35px;
    }

}


@media (max-width: 600px) {

    .product-popup {
        padding: 0;
    }

    .product-popup-window {
        width: 100%;
        height: 100%;
        max-height: 100vh;

        border-radius: 0;
    }

    .product-popup-gallery {
        padding: 20px;
    }

    .product-popup-main-image {
        height: 330px;
    }

    .product-popup-content {
        padding: 25px 20px 30px;
    }

    .product-popup-title {
        font-size: 23px;
    }

    .product-popup-price {
        font-size: 20px;
    }

    .product-popup-description {
        font-size: 14px;
        line-height: 1.55;
    }

    .product-card-more {
        opacity: 1;
        visibility: visible;

        bottom: 12px;

        padding: 9px 18px;
    }

}

/* =========================================================
   ЕДИНЫЙ СТАНДАРТ ТЕГОВ
   Эталон: .products-tag
   ========================================================= */

.products-tag,
.product-popup-tag,
.single-product-tag,
.service-tag,
.services-tag,
.portfolio-tag,
.single-portfolio-tag,
.post-tag,
.single-post-tag,
.posts-tag,
.single-post-tag,
.single-service-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 7px 14px;

    border: 1px solid #5e1d53;
    border-radius: 4px;

    background: transparent;

    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;

    color: #5e1d53 !important;

    text-decoration: none !important;
    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


/* ---------------------------------------------------------
   HOVER
   --------------------------------------------------------- */

.products-tag:hover,
.product-popup-tag:hover,
.single-product-tag:hover,
.service-tag:hover,
.services-tag:hover,
.portfolio-tag:hover,
.single-portfolio-tag:hover,
.post-tag:hover,
.single-post-tag:hover,
.posts-tag:hover,
.single-service-tag:hover {
    background: #5e1d53 !important;
    border-color: #5e1d53 !important;
    color: #ffffff !important;
}


/* ---------------------------------------------------------
   ACTIVE
   --------------------------------------------------------- */

.products-tag.is-active,
.product-popup-tag.is-active,
.single-product-tag.is-active,
.service-tag.is-active,
.services-tag.is-active,
.portfolio-tag.is-active,
.single-portfolio-tag.is-active,
.post-tag.is-active,
.single-post-tag.is-active,
.posts-tag.is-active,
.single-service-tag.is-active {
    background: #5e1d53 !important;
    border-color: #5e1d53 !important;
    color: #ffffff !important;
}

/* =========================================================
   ЕДИНЫЙ РАДИУС СКРУГЛЕНИЯ
   ========================================================= */

:root {
    --site-radius: 4px;
}

/* Карточки, изображения, кнопки, поля и основные элементы */

button,
input,
textarea,
select,
.product-card-image,
.product-popup-window,
.product-popup-main-image,
.product-popup-thumb,
.product-card-more,
.product-popup-link,
.products-tag,
.product-popup-tag,
.single-product-tag {
    border-radius: var(--site-radius);
}

/* =========================================================
   COMMUNITY
   Блог / Чат / Журнал
   ========================================================= */

.community-section {
    padding: 90px 0;
    background: #ffffff;
}

.community-container {
    width: min(1380px, calc(100% - 60px));
    margin: 0 auto;
}

.community-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, 0.95fr)
        minmax(0, 0.9fr);
    gap: 22px;
    align-items: stretch;
}


/* =========================================================
   КАРТОЧКА
   ========================================================= */

.community-card {
    position: relative;
    min-width: 0;
    background: #ffffff;
    border: 1px solid rgba(204, 164, 68, 0.58);
    box-shadow:
        0 12px 35px rgba(94, 29, 83, 0.07);
}

.community-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 48px;
    height: 2px;
    background: #cca444;
}

.community-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 34px 32px 30px;
    box-sizing: border-box;
}


/* =========================================================
   ЗАГОЛОВКИ
   ========================================================= */

.community-kicker {
    display: block;
    margin-bottom: 8px;
    color: #cca444;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.community-title {
    position: relative;
    margin: 0 0 25px;
    padding-bottom: 14px;
    color: #5e1d53;
    font-family: Arial, sans-serif;
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.community-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: #cca444;
}


/* =========================================================
   БЛОГ
   ========================================================= */

.community-featured-post {
    flex: 1 1 auto;
}

.community-post-date {
    margin-bottom: 7px;
    color: #cca444;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.community-post-title {
    margin: 0 0 13px;
    color: #5e1d53;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.community-post-title a {
    color: inherit;
    text-decoration: none;
}

.community-post-title a:hover {
    color: #8a2d77;
}

.community-post-excerpt {
    margin: 0;
    color: #625b62;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}

.community-more {
    display: inline-block;
    margin-top: 14px;
    color: #5e1d53;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.community-more::after {
    content: " →";
    color: #cca444;
}

.community-post-list {
    margin-top: 24px;
    border-top: 1px solid rgba(94, 29, 83, 0.13);
}

.community-post-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(94, 29, 83, 0.10);
    color: #5e1d53;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
}

.community-post-link:hover {
    color: #8a2d77;
}

.community-post-arrow {
    flex: 0 0 auto;
    color: #cca444;
    font-size: 15px;
}


/* =========================================================
   КНОПКИ
   ========================================================= */

.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 25px;
}

.community-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 17px;
    box-sizing: border-box;
    border: 1px solid #5e1d53;
    background: #5e1d53;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.community-button:hover {
    background: #7a286c;
    border-color: #7a286c;
    color: #ffffff;
}

.community-button-outline {
    background: transparent;
    color: #5e1d53;
}

.community-button-outline:hover {
    background: #5e1d53;
    color: #ffffff;
}

.community-button-dark {
    width: 100%;
    margin-top: auto;
    padding-top: 11px;
    padding-bottom: 11px;
}


/* =========================================================
   ЧАТ
   ========================================================= */

.community-messages {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1 1 auto;
}

.community-message {
    padding: 11px 0 12px;
    border-bottom: 1px solid rgba(94, 29, 83, 0.11);
}

.community-message:first-child {
    padding-top: 0;
}

.community-message-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.community-message-author {
    color: #5e1d53;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.community-message-time {
    color: #cca444;
    font-family: Arial, sans-serif;
    font-size: 9px;
}

.community-message-text {
    margin: 0;
    color: #625b62;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
}

.community-chat-empty {
    flex: 1 1 auto;
    color: #625b62;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   ЖУРНАЛ
   ========================================================= */

.community-journal-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.72;
    margin-bottom: 21px;
    overflow: hidden;
}

.community-journal-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(204, 164, 68, 0.35);
    pointer-events: none;
}

.community-journal-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-journal-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: auto;
}

.community-journal-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-top: 1px solid rgba(94, 29, 83, 0.12);
    color: #5e1d53;
    text-decoration: none;
}

.community-journal-link:hover {
    color: #8a2d77;
}

.community-journal-label {
    color: #5e1d53;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.community-journal-description {
    color: #766c75;
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1.45;
}

.community-journal-arrow {
    color: #cca444;
    font-size: 17px;
}


/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1050px) {

    .community-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .community-journal {
        grid-column: 1 / -1;
    }

    .community-journal-photo {
        aspect-ratio: 16 / 6;
    }

    .community-journal-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 25px;
    }

}


@media (max-width: 700px) {

    .community-section {
        padding: 60px 0;
    }

    .community-container {
        width: min(
            100% - 30px,
            600px
        );
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .community-journal {
        grid-column: auto;
    }

    .community-card-inner {
        padding: 28px 23px 24px;
    }

    .community-title {
        font-size: 27px;
    }

    .community-journal-photo {
        aspect-ratio: 1 / 0.78;
    }

    .community-journal-links {
        display: flex;
    }

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================================================
   АРХИВ СТАТЕЙ
   /posts/
   АРХИВ МЕТОК
   /post-tag/...
   ========================================================= */


/* =========================================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ========================================================= */

.posts-archive-section {
    position: relative;
    padding: 90px 0 110px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(204, 164, 68, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 78%,
            rgba(94, 29, 83, 0.07),
            transparent 30%
        );
}


.posts-archive-inner {
    width: min(1380px, calc(100% - 80px));
    margin: 0 auto;
}


/* =========================================================
   ЗАГОЛОВОК
   ========================================================= */

.posts-archive-header {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}


.posts-archive-header .posts-kicker {
    display: inline-block;

    margin-bottom: 14px;

    color: #cca444;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.posts-archive-title {
    position: relative;

    display: inline-block;

    margin: 0;

    color: #5e1d53;

    font-size: clamp(38px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.05;

    letter-spacing: -0.025em;

    text-shadow:
        0 4px 18px rgba(94, 29, 83, 0.10);
}


.posts-archive-title::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -15px;

    width: 72px;
    height: 2px;

    background: #cca444;

    transform: translateX(-50%);
}


.posts-archive-intro {
    max-width: 650px;

    margin: 34px auto 0;

    color: #6f6670;

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   НАВИГАЦИЯ ПО МЕТКАМ
   ========================================================= */

.posts-archive-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 10px;

    margin: 0 auto 52px;
}


.posts-archive-tags .posts-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 8px 18px;

    border: 1px solid #5e1d53;
    border-radius: 4px;

    background: transparent;

    color: #5e1d53;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;

    letter-spacing: 0.02em;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.posts-archive-tags .posts-tag:hover {
    background: #5e1d53;
    border-color: #5e1d53;

    color: #fff;

    transform: translateY(-2px);
}


.posts-archive-tags .posts-tag.is-active {
    background: #5e1d53;
    border-color: #5e1d53;

    color: #fff;
}


/* =========================================================
   СЕТКА СТАТЕЙ
   ========================================================= */

.posts-archive-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 34px 28px;

    margin-bottom: 65px;
}


/* =========================================================
   КАРТОЧКА В АРХИВЕ
   ========================================================= */

.posts-archive-grid .post-card {
    min-width: 0;
}


.posts-archive-grid .post-card-link {
    height: 100%;
}


/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */

.posts-archive .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 8px;

    margin-top: 20px;
}


.posts-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;
    padding: 0 12px;

    border: 1px solid rgba(94, 29, 83, 0.28);
    border-radius: 4px;

    background: transparent;

    color: #5e1d53;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.posts-archive .page-numbers:hover {
    border-color: #cca444;

    background: #cca444;

    color: #fff;

    transform: translateY(-2px);
}


.posts-archive .page-numbers.current {
    border-color: #5e1d53;

    background: #5e1d53;

    color: #fff;
}


.posts-archive .page-numbers.dots {
    border-color: transparent;

    background: transparent;

    color: #8a8189;

    pointer-events: none;
}


/* =========================================================
   ПУСТОЙ АРХИВ
   ========================================================= */

.posts-empty {
    max-width: 700px;

    margin: 60px auto 0;
    padding: 50px 30px;

    border: 1px solid rgba(204, 164, 68, 0.35);
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.55);

    text-align: center;
}


.posts-empty p {
    margin: 0;

    color: #6f6670;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   АРХИВ КОНКРЕТНОЙ МЕТКИ
   ========================================================= */

.posts-tag-archive .posts-archive-header {
    margin-bottom: 42px;
}


.posts-tag-archive .posts-archive-title {
    color: #5e1d53;
}


/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1100px) {

    .posts-archive-inner {
        width: min(100% - 50px, 1380px);
    }


    .posts-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .posts-archive-section {
        padding: 65px 0 80px;
    }


    .posts-archive-inner {
        width: calc(100% - 32px);
    }


    .posts-archive-header {
        margin-bottom: 38px;
    }


    .posts-archive-title {
        font-size: 38px;
    }


    .posts-archive-intro {
        margin-top: 30px;

        font-size: 15px;
        line-height: 1.65;
    }


    .posts-archive-tags {
        justify-content: flex-start;

        gap: 8px;

        margin-bottom: 38px;
    }


    .posts-archive-tags .posts-tag {
        min-height: 36px;
        padding: 7px 14px;

        font-size: 12px;
    }


    .posts-archive-grid {
        grid-template-columns: 1fr;

        gap: 24px;

        margin-bottom: 45px;
    }


    .posts-archive .nav-links {
        gap: 6px;
    }


    .posts-archive .page-numbers {
        min-width: 38px;
        height: 38px;

        font-size: 12px;
    }

}


@media (max-width: 420px) {

    .posts-archive-title {
        font-size: 34px;
    }


    .posts-archive-tags .posts-tag {
        padding: 7px 12px;
    }

}

/* =========================================================
   КНОПКА НАВЕРХ
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin: 0;
    padding: 0;

    border: 1px solid rgba(204, 164, 68, 0.75);
    border-radius: 50%;

    background: #cca444;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 22px;
    line-height: 1;
    font-weight: 400;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    box-shadow:
        0 6px 18px rgba(94, 29, 83, 0.16);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}


.back-to-top span {
    display: block;

    margin-top: -3px;
}


/* ---------------------------------------------------------
   ПОКАЗ ПОСЛЕ ПРОКРУТКИ
   --------------------------------------------------------- */

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* ---------------------------------------------------------
   НАВЕДЕНИЕ
   --------------------------------------------------------- */

.back-to-top:hover {
    background: #5e1d53;

    border-color: #5e1d53;

    box-shadow:
        0 8px 22px rgba(94, 29, 83, 0.24);

    transform: translateY(-2px);
}


/* ---------------------------------------------------------
   МОБИЛЬНЫЙ
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .back-to-top {
        right: 16px;
        bottom: 16px;

        width: 42px;
        height: 42px;

        font-size: 20px;
    }

}