
/* WUDE — UNIVERSAL CATEGORY */

.wude-cat-page {
    --paper: #f6f2e9;
    --ink: #292522;
    --red: #923326;
    --line: #dfd5c8;
    background: var(--paper);
    color: var(--ink);
    font: 400 15px/1.6 Montserrat, sans-serif;
    min-height: 70vh;
}

.wude-cat-page *,
.wude-cat-page *::before,
.wude-cat-page *::after {
    box-sizing: border-box;
}

.wude-cat-hero {
    padding: 55px 20px 48px;
    text-align: center;
    background:
        radial-gradient(ellipse at 12% 80%,
            rgba(92,86,74,.12), transparent 48%),
        radial-gradient(ellipse at 88% 12%,
            rgba(92,86,74,.10), transparent 42%),
        linear-gradient(180deg,#faf8f3,#f0ebe2);
}

.wude-cat-hero-inner {
    max-width: 1000px;
    margin: auto;
}

.wude-cat-eyebrow {
    color: var(--red);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.wude-cat-hero h1 {
    font: 400 clamp(46px,5vw,72px)/1.2
        'Playfair Display', Georgia, serif;
    text-transform: none;
    margin: 0 0 12px;
    color: var(--ink);
}

.wude-cat-hero p {
    margin: 0;
    font-size: 16px;
}

.wude-cat-hero-description {
    max-width: 760px;
    margin: auto;
}

.wude-cat-breadcrumbs {
    margin: 0 0 14px;
    font-size: 12px;
}

.wude-cat-breadcrumbs a {
    color: #74665b;
    text-decoration: none;
}

.wude-cat-breadcrumbs span {
    margin: 0 6px;
    color: #aa9b8b;
}

.wude-cat-redline {
    display: block;
    width: 56px;
    height: 2px;
    background: var(--red);
    margin: 23px auto 0;
}

.wude-cat-container {
    max-width: 1600px;
    margin: auto;
    padding: 40px 30px 80px;
}

/* BLOG DIRECTORY */

.wude-cat-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px;
    align-items: stretch;
}

.wude-cat-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(255,255,255,.58);
    border: 1px solid #e5dbcf;
    border-radius: 12px;
    padding: 27px;
    box-shadow: 0 5px 25px rgba(46,31,17,.045);
}

.wude-cat-card-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    min-height: 120px;
    padding-right: 15px;
}

.wude-cat-card-icon {
    flex: 0 0 75px;
    color: var(--red);
}

.wude-cat-card-icon svg {
    width: 74px;
    height: 90px;
}

.wude-cat-card-heading {
    min-width: 0;
}

.wude-cat-card h2 {
    font: 600 28px/1.2 'Playfair Display', Georgia, serif;
    text-transform: none;
    margin: 4px 0 12px;
}

.wude-cat-card h2 a,
.wude-cat-post h3 a {
    color: var(--ink);
    text-decoration: none;
}

.wude-cat-card h2 a:hover,
.wude-cat-post h3 a:hover {
    color: var(--red);
}

.wude-cat-card-description,
.wude-cat-card-description p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #70665e;
}

.wude-cat-count {
    position: absolute;
    right: -11px;
    top: -12px;
    font-size: 12px;
    padding: 4px 9px;
    border-radius: 50px;
    background: #efe2d1;
}

.wude-cat-rule {
    height: 1px;
    background: var(--line);
    margin: 12px 0 8px;
}

.wude-cat-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wude-cat-tree li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wude-cat-tree li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid #e8ded3;
    text-decoration: none;
    color: var(--ink);
    font-size: 13px;
}

.wude-cat-tree li > a:hover {
    color: var(--red);
}

.wude-cat-tree-name,
.wude-cat-tree-end {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.wude-cat-tree-end {
    white-space: nowrap;
}

.wude-cat-tree-end small {
    color: #988d80;
    font-size: 11px;
}

.wude-cat-tree-end span {
    font-size: 23px;
    line-height: 1;
}

.wude-cat-diamond {
    color: var(--red);
    font-size: 16px;
}

.wude-cat-tree .wude-cat-tree {
    margin-left: 15px;
    padding-left: 12px;
    border-left: 1px solid var(--line);
}

.wude-cat-all,
.wude-cat-read {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.wude-cat-all {
    margin-top: auto;
    padding-top: 23px;
}

.wude-cat-all span {
    font-size: 19px;

    
    

    
    
}
.wude-cat-read span {
    font-size: 19px;

    
    

    
    

    position: relative;
    top: 3px;
}

/* INNER CATEGORY — FLEX */

.wude-cat-layout {
    display: flex;
    align-items: flex-start;
    gap: 35px;
}

.wude-cat-sidebar {
    flex: 0 0 30%;
    min-width: 0;
    order: 1;
}

.wude-cat-materials {
    flex: 1 1 70%;
    min-width: 0;
    order: 2;
}

.wude-cat-layout-full .wude-cat-materials {
    flex: 1 1 100%;
}

.wude-cat-sidebar > h2,
.wude-cat-materials > h2 {
    font: 600 32px/1.3 'Playfair Display',Georgia,serif;
    text-transform: none;
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.wude-cat-subcards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wude-cat-subcard {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px;
    background: rgba(255,255,255,.65);
    border: 1px solid #e5dbcf;
    border-radius: 9px;
    text-decoration: none;
    color: var(--ink);
}

.wude-cat-subcard:hover {
    border-color: #b9a393;
    color: var(--red);
}

.wude-cat-subcard-icon {
    flex: 0 0 52px;
    color: var(--red);
}

.wude-cat-subcard-icon svg {
    width: 52px;
    height: 52px;
}

.wude-cat-subcard-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.wude-cat-subcard-content strong {
    font: 600 19px/1.3 'Playfair Display',Georgia,serif;
}

.wude-cat-subcard-content small {
    color: #8e8377;
    font-size: 11px;
}

.wude-cat-subcard-arrow {
    margin-left: auto;
    color: var(--red);
    font-size: 20px;
}

.wude-cat-post-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 25px;
}

.wude-cat-post {
    min-width: 0;
    background: rgba(255,255,255,.64);
    border: 1px solid #e5dbcf;
    border-radius: 9px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wude-cat-post-image {
    display: block;
    height: 165px;
    flex: 0 0 165px;
    overflow: hidden;
    background: #e5ddd0;
}

.wude-cat-post-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.wude-cat-post-placeholder {
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-size: 70px;
    color: #9d8b78;
}

.wude-cat-post-body {
    padding: 18px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.wude-cat-post-body time {
    font-size: 11px;
    color: #938579;
}

.wude-cat-post h3 {
    font: 600 19px/1.35 'Playfair Display',Georgia,serif;
    text-transform: none;
    margin: 10px 0;
}

.wude-cat-post-body p {
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.wude-cat-post-body .wude-cat-read {
    margin-top: auto;
}

.wude-cat-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 35px;
}

.wude-cat-pagination .page-numbers {
    padding: 7px 13px;
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}

.wude-cat-pagination .current {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

/* TABLET */

@media(max-width:1100px) {
    .wude-cat-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .wude-cat-layout {
        gap: 25px;
    }
    .wude-cat-post-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

/* MOBILE */

@media(max-width:700px) {
    .wude-cat-container {
        padding: 22px 15px 55px;
    }

    .wude-cat-hero {
        padding: 40px 15px;
    }

    .wude-cat-grid,
    .wude-cat-post-grid {
        grid-template-columns: 1fr;
    }

    .wude-cat-card {
        padding: 21px;
    }

    .wude-cat-card h2 {
        font-size: 25px;
    }

    .wude-cat-layout {
        flex-direction: column;
        gap: 30px;
    }

    .wude-cat-sidebar {
        width: 100%;
        flex: 0 0 auto;
        order: 1;
    }

    .wude-cat-materials {
        width: 100%;
        flex: 0 0 auto;
        order: 2;
    }

    .wude-cat-sidebar > h2,
    .wude-cat-materials > h2 {
        font-size: 27px;
    }

    .wude-cat-post-image {
        height: 220px;
        flex-basis: 220px;
    }
}


/* WUDE CATEGORY FULL WIDTH START */

/* Контейнер внутренних рубрик */
.wude-cat-page .wude-cat-container {
    width: calc(100% - 30px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

/* Материалы занимают всю ширину */
.wude-cat-page .wude-cat-layout-full {
    display: block;
    width: 100%;
    max-width: none;
}

.wude-cat-page .wude-cat-layout-full .wude-cat-materials {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
}

/* Четыре карточки */
.wude-cat-page .wude-cat-layout-full .wude-cat-post-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.wude-cat-page .wude-cat-layout-full .wude-cat-post {
    min-width: 0;
    width: 100%;
    max-width: none;
}

/* Планшеты */
@media (max-width: 1024px) {
    .wude-cat-page .wude-cat-layout-full .wude-cat-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Телефоны */
@media (max-width: 767px) {
    .wude-cat-page .wude-cat-layout-full .wude-cat-post-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

/* WUDE CATEGORY FULL WIDTH END */

/* WUDE READ ARROW POSITION */
.wude-cat-post a[href] span[aria-hidden="true"] {
    position: relative;
    top: 2px;
}
