.rpb-matching {
    margin: 38px 0 70px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(145deg, var(--mint-2), #fff);
}

.rpb-matching__intro {
    max-width: 760px;
    margin-bottom: 28px;
}

.rpb-matching__intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.rpb-matching-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.rpb-matching-form label {
    color: var(--ink);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.rpb-matching-form select,
.rpb-matching-form input {
    width: 100%;
    min-height: 50px;
    margin-top: 7px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.rpb-matching-form small {
    display: block;
    margin-top: 5px;
    color: #657b86;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0;
}

.rpb-matching-form .rpb-button {
    align-self: end;
}

.rpb-matching__notice {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #5c727d;
    font-size: .8rem;
}

.rpb-consent-stack {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.rpb-contact {
    margin-top: 38px;
}

.rpb-match-summary {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--rpb-accent, #17776f);
    border-radius: 8px;
    background: #f3f8f7;
    color: #243b3a;
}

.rpb-match-summary p {
    margin: 6px 0;
}

.rpb-match-summary small {
    display: block;
    color: #536766;
}

.rpb-profile-content {
    padding-top: 28px;
    padding-bottom: 10px;
}

.rpb-profile-content > p {
    max-width: 760px;
    color: #536766;
}

.rpb-section--topics {
    background: linear-gradient(145deg, #fff, var(--sand));
}

.rpb-topic-grid,
.rpb-cluster-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.rpb-topic-grid > a,
.rpb-cluster-links > a {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(16,43,63,.05);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.rpb-topic-grid > a:hover,
.rpb-cluster-links > a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rpb-topic-grid span,
.rpb-cluster-links strong {
    color: var(--teal);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rpb-topic-grid strong {
    margin: 22px 0 8px;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.15;
}

.rpb-topic-grid small,
.rpb-cluster-links span {
    color: var(--text);
    font-size: .82rem;
}

.rpb-cluster-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 30px 0 48px;
}

.rpb-cluster-links > a {
    min-height: 140px;
}

.rpb-cluster-links strong {
    margin-bottom: 14px;
    color: var(--ink);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 1050px) {
    .rpb-topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .rpb-matching-form {
        grid-template-columns: 1fr;
    }

    .rpb-topic-grid,
    .rpb-cluster-links {
        grid-template-columns: 1fr;
    }
}
