.pg-wrap {
    --pg-pink: #c8337a;
    --pg-pink-dk: #a51f5f;
    --pg-blue: #0d72fc;
    --pg-ink: #0b1530;
    --pg-text: #425a70;
    --pg-line: #eef0f5;
    padding-top: 16px;
    padding-bottom: 48px;
}

.pg-bc ol {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
}

.pg-bc li + li::before {
    content: "\203A";
    margin: 0 8px;
    color: #999;
}

.pg-bc a {
    color: inherit;
}

.pg-bc a:hover {
    color: var(--pg-pink);
}

.pg-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
    background: linear-gradient(100deg, #feeef0 0%, #fde6ec 100%);
    border-radius: 12px;
    padding: 32px 40px;
    margin-bottom: 24px;
}

.pg-hero h1,
.pg-hero p {
    position: relative;
    z-index: 1;
    max-width: 52%;
}

.pg-hero h1 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #c00465;
}

.pg-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--pg-text);
}

.pg-hero img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: block;
    width: auto;
    height: 100%;
    max-width: 68%;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
    mask-image: linear-gradient(to right, transparent 0, #000 30%);
}

.pg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-gap: 16px;
}

.pg-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr auto;
    grid-gap: 12px;
    align-items: start;
    padding: 20px;
    background: linear-gradient(135deg, #fff 0%, #f6f8fe 55%, #f3f7fe 100%);
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: box-shadow 200ms ease-in-out;
}

.pg-card.pg-tw {
    background: linear-gradient(135deg, #fff 0%, #fef7f4 55%, #fef5f6 100%);
}

.pg-card:hover {
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
}

.pg-card svg,
.pg-mlist svg {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--pg-blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pg-card svg {
    grid-area: 1 / 1;
    align-self: center;
    box-sizing: border-box;
    width: 42px;
    height: 42px;
    padding: 9px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.pg-card h2 {
    grid-area: 1 / 2;
    align-self: center;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.pg-card h2 a {
    color: var(--pg-ink);
}

.pg-card h2 a:hover {
    color: var(--pg-pink-dk);
}

.pg-badge {
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 14px;
    background-color: #ededf1;
    color: #4f5c68;
    font-size: 12px;
    line-height: 28px;
    font-weight: 500;
    text-align: center;
}

.pg-card .pg-badge {
    grid-area: 1 / 3;
    justify-self: end;
    align-self: center;
}

.pg-card ul {
    grid-area: 2 / 1 / 3 / 4;
    list-style: none;
    margin: 0;
    padding: 0 142px 0 0;
    min-width: 0;
}

.pg-card li {
    margin: 0;
    padding: 3px 0;
    font-size: 14px;
    line-height: 1.4;
}

.pg-card li a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pg-text);
}

.pg-card li a:hover,
.pg-mlist li a:hover {
    color: var(--pg-pink-dk);
}

.pg-card img {
    grid-area: 2 / 1 / 4 / 4;
    align-self: center;
    justify-self: end;
    display: block;
    width: 130px;
    height: 130px;
    object-fit: contain;
    border-radius: 8px;
}

.pg-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--pg-pink);
}

.pg-more::after {
    content: " \2192";
}

.pg-more:hover {
    color: var(--pg-pink-dk);
    text-decoration: underline;
}

.pg-card .pg-more {
    grid-area: 3 / 1 / 4 / 4;
    justify-self: start;
    align-self: end;
}

@media (min-width: 1024px) {
    .pg-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-gap: 20px;
    }

    .pg-card {
        grid-column: span 4;
    }

    .pg-card:nth-last-child(4):nth-child(3n + 1),
    .pg-card:nth-last-child(4):nth-child(3n + 1) ~ .pg-card {
        grid-column: span 3;
        padding: 16px;
    }

    .pg-card:nth-last-child(4):nth-child(3n + 1) h2,
    .pg-card:nth-last-child(4):nth-child(3n + 1) ~ .pg-card h2 {
        font-size: 18px;
    }

    .pg-card:nth-last-child(4):nth-child(3n + 1) img,
    .pg-card:nth-last-child(4):nth-child(3n + 1) ~ .pg-card img {
        width: 96px;
        height: 96px;
    }

    .pg-card:nth-last-child(4):nth-child(3n + 1) ul,
    .pg-card:nth-last-child(4):nth-child(3n + 1) ~ .pg-card ul {
        padding-right: 108px;
    }
}

@media (max-width: 1023px) {
    .pg-hero {
        min-height: 210px;
        padding: 24px;
    }

    .pg-hero h1,
    .pg-hero p {
        max-width: 55%;
    }

    .pg-hero h1 {
        font-size: 32px;
    }

    .pg-hero p {
        font-size: 15px;
    }

    .pg-card {
        padding: 16px;
    }

    .pg-card h2 {
        font-size: 18px;
    }

    .pg-card li:nth-child(n + 4) {
        display: none;
    }

    .pg-card ul {
        padding-right: 112px;
    }

    .pg-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 767px) {
    .pg-hero {
        min-height: 180px;
    }

    .pg-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pg-wrap--m {
    padding: 12px 14px 24px;
}

.pg-wrap--m .pg-bc ol {
    margin-bottom: 12px;
    font-size: 13px;
}

.pg-wrap--m .pg-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-column-gap: 12px;
    align-content: center;
    min-height: 0;
    padding: 16px;
    margin-bottom: 16px;
}

.pg-wrap--m .pg-hero h1,
.pg-wrap--m .pg-hero p {
    grid-column: 1;
    max-width: none;
}

.pg-wrap--m .pg-hero h1 {
    align-self: end;
    margin-bottom: 6px;
    font-size: 26px;
}

.pg-wrap--m .pg-hero p {
    align-self: start;
    font-size: 14px;
}

.pg-wrap--m .pg-hero img {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 116px;
    height: 116px;
    max-width: none;
    border-radius: 10px;
    -webkit-mask-image: none;
    mask-image: none;
}

.pg-mlist {
    background-color: #fff;
    border: 1px solid var(--pg-line);
    border-radius: 12px;
    overflow: hidden;
}

.pg-mlist details + details {
    border-top: 1px solid #f3eef1;
}

.pg-mlist summary {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 10px 14px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pg-mlist summary::-webkit-details-marker {
    display: none;
}

.pg-mlist summary::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-left: 12px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: rotate(-45deg);
    transition: transform 200ms ease-in-out;
}

.pg-mlist details[open] > summary::after {
    transform: rotate(45deg);
}

.pg-mlist svg {
    width: 26px;
    height: 26px;
}

.pg-mlist h2 {
    flex: 1;
    min-width: 0;
    margin: 0 12px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--pg-ink);
}

.pg-mlist ul {
    list-style: none;
    margin: 0;
    padding: 0 14px 0 52px;
}

.pg-mlist li {
    margin: 0;
    padding: 0;
}

.pg-mlist li a {
    display: block;
    padding: 9px 0;
    font-size: 15px;
    line-height: 1.35;
    color: var(--pg-text);
}

.pg-mlist .pg-more {
    display: block;
    margin: 0 14px 0 52px;
    padding: 9px 0 14px;
}
