.home-reference-section {
    padding-block: clamp(56px, 8vw, 96px);
    background: linear-gradient(180deg, var(--pm-color-paper) 0%, #f3f0ea 100%);
}

.home-reference-head {
    width: min(100% - 40px, var(--pm-container-wide));
    margin: 0 auto 28px;
    padding-inline: clamp(22px, 4.4vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
    gap: 32px;
    align-items: end;
}

.home-reference-head .kicker {
    margin: 0 0 14px;
    color: var(--pm-color-orange-on-light);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-reference-head h2 {
    margin: 0;
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 900;
    line-height: 1.1;
}

.home-reference-head h2 .headline-accent {
    color: var(--pm-color-orange-on-light);
}

.home-reference-head p {
    margin: 0;
    color: rgba(61, 70, 84, 0.72);
    font-size: 18px;
}

.home-reference-grid {
    width: min(100% - 40px, var(--pm-container-wide));
    margin-inline: auto;
    padding-inline: clamp(22px, 4.4vw, 64px);
    display: grid;
    grid-template-columns: 1.1fr 1.25fr 1.1fr;
    gap: 14px;
}

.home-reference-card {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--pm-radius);
    border: 1px solid rgba(61, 70, 84, 0.18);
    background: #ffffff;
    color: var(--pm-color-ink);
    padding: 22px;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-reference-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 68px rgba(0, 0, 0, 0.13);
    border-color: rgba(245, 158, 1, 0.46);
}

.home-reference-card picture {
    display: block;
    height: 235px;
    margin: -22px -22px 18px;
    width: calc(100% + 44px);
    overflow: hidden;
    background: #111820;
}

.home-reference-card picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-reference-card span {
    display: block;
    margin-bottom: 10px;
    color: var(--pm-color-orange-on-light);
    font-size: 13px;
    font-weight: 900;
}

.home-reference-card strong {
    display: block;
    margin-top: auto;
    color: var(--pm-color-ink);
    font-size: 24px;
    line-height: 1.1;
}

.home-reference-card-dark {
    background: #111820;
    color: var(--pm-color-paper);
    border-color: var(--pm-color-line-dark);
}

.home-reference-card-dark strong {
    color: var(--pm-color-paper);
}

.home-reference-action {
    width: min(100% - 40px, var(--pm-container-wide));
    margin: 24px auto 0;
    padding-inline: clamp(22px, 4.4vw, 64px);
}

@media (max-width: 900px) {
    .home-reference-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-reference-grid {
        grid-template-columns: 1fr;
    }

    .home-reference-card {
        min-height: auto;
        padding: 18px;
    }

    .home-reference-card picture {
        height: 205px;
        margin: -18px -18px 16px;
        width: calc(100% + 36px);
    }
}
