.ph-hub {
    --ph-cols: 4;
    --ph-cols-tablet: 2;
    --ph-cols-mobile: 1;
    --ph-border: #d7d7d7;
    --ph-text: #111111;
    --ph-muted: #626262;
    --ph-accent: #c9a36b;
    --ph-link: #1d315b;
    width: 100%;
    color: var(--ph-text);
}

.ph-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.ph-toolbar label {
    margin: 0;
}

.ph-toolbar input,
.ph-toolbar select {
    min-height: 46px;
    padding: 8px 14px;
    border: 1px solid var(--ph-border);
    border-radius: 0;
    background: #fff;
    color: var(--ph-text);
    font: inherit;
}

.ph-search-wrap {
    flex: 0 1 20%;
    width: 20%;
    min-width: 210px;
    margin-left: auto;
}

.ph-toolbar > label:not(.ph-search-wrap) {
    flex: 0 0 auto;
}

.ph-search {
    width: 100%;
}

.ph-grid {
    display: grid;
    grid-template-columns: repeat(var(--ph-cols), minmax(0, 1fr));
    gap: 0;
}

.ph-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 285px !important;
    padding: 20px 30px 14px;
    border: 1px solid var(--ph-border);
    margin: 0 -1px -1px 0;
    background: #fff;
    color: var(--ph-text);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.ph-card:hover {
    position: relative;
    z-index: 2;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.ph-card[hidden] {
    display: none !important;
}

.ph-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ph-card-type {
    display: inline-block;
    color: var(--ph-accent);
}

.ph-card-file {
    flex: 0 0 auto;
    color: #929292;
    text-align: right;
    white-space: nowrap;
}

.ph-card-body {
    flex: 1 1 auto;
}

.ph-card-line {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ph-card-title {
    margin: 0 0 10px;
    color: inherit;
    font-size: clamp(25px, 2vw, 35px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ph-card-description {
    max-width: 32em;
    margin: 0;
    color: var(--ph-muted);
    font-size: 15px;
    line-height: 1.5;
}

.ph-download {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--ph-border);
    color: var(--ph-link);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.065em;
    text-decoration: none;
    text-transform: uppercase;
}

.ph-hub .ph-download,
.ph-hub .ph-download:visited {
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.ph-download:hover,
.ph-download:focus {
    color: var(--ph-link);
    text-decoration: none;
}

.ph-download-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.ph-pdf-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    overflow: visible;
}

.ph-pdf-icon-file {
    fill: #e53935;
}

.ph-pdf-icon-fold {
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.ph-pdf-icon-mark {
    fill: #ffffff;
}

.ph-download-arrow {
    font-size: 15px;
    line-height: 1;
    transition: transform 150ms ease;
}

.ph-download:hover .ph-download-arrow {
    transform: translateY(3px);
}

.ph-load-more {
    display: block;
    min-width: 220px;
    margin: 34px auto 0;
    padding: 14px 22px;
    border: 0;
    border-radius: 0;
    border: 1px solid var(--ph-border);
    background: #fff;
    color: var(--ph-link);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ph-load-more[hidden],
.ph-empty[hidden] {
    display: none !important;
}

.ph-empty {
    padding: 30px;
    border: 1px solid var(--ph-border);
    text-align: center;
}

@media (max-width: 1024px) {
    .ph-grid {
        grid-template-columns: repeat(var(--ph-cols-tablet), minmax(0, 1fr));
    }

    .ph-search-wrap {
        flex-basis: 32%;
        width: 32%;
    }
}

@media (max-width: 767px) {
    .ph-grid {
        grid-template-columns: repeat(var(--ph-cols-mobile), minmax(0, 1fr));
    }

    .ph-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ph-toolbar label,
    .ph-toolbar input,
    .ph-toolbar select {
        width: 100%;
    }

    .ph-card {
        min-height: 0 !important;
        padding: 20px 22px 14px;
    }

    .ph-card-meta {
        margin-bottom: 16px;
    }
}
