.p-header {
    padding: 60px 20px 40px;
    text-align: center;
}

.p-top-line {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #818181;
    margin-bottom: 20px;
}

.p-huge-title {
    font-family: 'Geologica', sans-serif;
    font-size: 12vw;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 16px;
}

.p-subtitle {
    font-family: 'Geologica', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 25px;
    letter-spacing: 0;
    text-align: center;
    color: var(--color-ink, #1C1919);
    max-width: 700px;
    margin: 0 auto;
}

.p-controls {
    padding: 0 20px 20px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.p-control-btn {
    min-height: 44px;
    padding: 12px 0;
    background: transparent;
    border: none;
    color: #000;
    font-family: 'Geologica', sans-serif;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.p-control-btn:hover { color: var(--color-red, #8E1B19); }

.p-sort-wrap {
    position: relative;
}

.p-sort-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: var(--color-paper, #E9E9E9);
    border: 1px solid var(--color-line, #C6C6C6);
    min-width: 160px;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.p-sort-menu[hidden] {
    display: none !important;
}

.p-sort-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-family: 'Geologica', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: var(--color-ink, #1C1919);
    cursor: pointer;
    transition: color 0.2s ease;
}

.p-sort-item:hover {
    color: var(--color-red, #8E1B19);
}

.p-sort-item.active {
    color: var(--color-red, #8E1B19);
}

.p-content {
    padding: 0 20px 80px;
}

.p-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.p-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.p-grid-large-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.p-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.p-card-image {
    width: 100%;
    height: 425px;
    overflow: hidden;
    margin-bottom: 15px;
}

.p-grid-large .p-card-image { height: 470px; }
.p-grid-large-2 .p-card-image { height: 580px; }

.p-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-card-date {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #494747;
    margin: 0;
}

.p-card-title {
    font-family: 'Geologica', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 30px;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    transition: color 0.3s ease;
}

.p-card:hover .p-card-title {
    color: var(--color-red, #8E1B19);
}

.p-card-tag {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: var(--color-muted, #494747);
    margin: 0;
}

.p-card-excerpt {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: var(--color-muted, #494747);
    margin: 0;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--color-line, #C6C6C6);
    border-bottom: 1px solid var(--color-line, #C6C6C6);
    padding: 22px 0;
    margin: 60px 0 0;
}

.p-load-more {
    background: transparent;
    border: none;
    padding: 0;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    color: var(--color-ink, #1C1919);
    cursor: pointer;
    transition: color 0.3s ease;
}

.p-load-more::before { content: "› "; }
.p-load-more:hover { color: var(--color-red, #8E1B19); }

.p-no-items {
    text-align: center;
    padding: 60px 0;
    color: #818181;
    font-style: italic;
}

.pd-container {
    padding: 40px 20px 80px;
    max-width: 1600px;
    margin: 0 auto;
}

.pd-back {
    display: inline-block;
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    color: #818181;
    text-decoration: none;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.pd-back:hover { color: var(--color-red, #8E1B19); }

.pd-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.pd-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pd-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pd-title {
    font-family: 'Geologica', sans-serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.pd-date {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #494747;
    margin: 0;
}

.pd-tag {
    font-family: 'Geologica', sans-serif;
    font-size: 14px;
    line-height: 21px;
    color: #818181;
    margin: 0;
}

.pd-excerpt {
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    color: #000;
    margin: 0;
}

.pd-full-text {
    font-family: 'Geologica', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #333;
    max-width: 900px;
}

.pd-full-text p {
    margin-bottom: 16px;
}

.pd-full-text p:last-child {
    margin-bottom: 0;
}

.pd-full-text ul,
.pd-full-text ol {
    list-style: initial !important;
    padding-left: 40px;
    margin: 20px 0;
}

.pd-full-text li {
    list-style: inherit !important;
    display: list-item !important;
    margin-bottom: 8px;
    line-height: 1.8;
}

@media (max-width: 768px) {

    .p-header {
        padding: 40px 16px 24px;
    }

    .p-top-line {
        font-size: 12px;
        line-height: 18px;
        margin-bottom: 16px;
    }

    .p-huge-title {
        font-size: 40px;
        line-height: 46px;
        margin-bottom: 16px;
    }

    .p-subtitle {
        font-family: 'Geologica', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 25px;
        letter-spacing: 0;
        text-align: center;
        color: var(--color-ink, #1C1919);
    }

    .p-controls {
        padding: 0 16px 16px;
        gap: 20px;
    }

    .p-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }

    .p-grid-large,
    .p-grid-large-2 {
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
    }

    .p-card-image,
    .p-grid-large .p-card-image,
    .p-grid-large-2 .p-card-image {
        height: 213.75px;
        margin-bottom: 12px;
    }

    .p-card-title {
        font-size: 16px;
        line-height: 25px;
    }

    .p-content {
        padding: 0 16px 60px;
    }
}