.certificate-page{
    background:#f7f7f5;
    color:#202020;
    padding:42px max(24px, calc((100% - 1280px) / 2)) 72px;
}

.certificate-hero{
    display:grid;
    grid-template-columns:minmax(0, 1.45fr) minmax(330px, .75fr);
    gap:48px;
    align-items:end;
    padding:0 0 30px;
    border-bottom:1px solid #d9d4c8;
}

.certificate-kicker{
    margin:0 0 10px;
    color:#9b762e;
    font-size:13px;
    font-weight:800;
    letter-spacing:0;
}

.certificate-hero h1{
    margin:0;
    color:#171717;
    font-size:38px;
    line-height:1.15;
    font-weight:750;
    letter-spacing:0;
}

.certificate-hero-copy > p:last-child{
    max-width:760px;
    margin:16px 0 0;
    color:#5d5a54;
    font-size:16px;
    line-height:1.7;
}

.certificate-facts{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:0;
    margin:0;
}

.certificate-facts div{
    min-width:0;
    padding:0 16px;
    border-left:1px solid #d9d4c8;
}

.certificate-facts dt{
    margin:0 0 5px;
    color:#777168;
    font-size:12px;
    font-weight:700;
}

.certificate-facts dd{
    margin:0;
    color:#202020;
    font-size:14px;
    line-height:1.4;
    font-weight:700;
    overflow-wrap:anywhere;
}

.certificate-document{
    margin-top:30px;
}

.certificate-preview{
    display:block;
    width:100%;
    background:#fff;
    border:1px solid #e1ddd3;
    border-radius:4px;
    box-shadow:0 12px 36px rgba(25,25,25,.08);
    overflow:hidden;
}

.certificate-preview img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1.414 / 1;
    object-fit:contain;
}

.certificate-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.certificate-action{
    min-height:44px;
    padding:11px 18px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:1px solid #202020;
    border-radius:4px;
    font-size:14px;
    line-height:1.35;
    font-weight:700;
    text-decoration:none !important;
}

.certificate-action-primary{
    background:#202020;
    color:#fff !important;
}

.certificate-action-secondary{
    background:#fff;
    color:#202020 !important;
}

.certificate-action:hover,
.certificate-action:focus{
    border-color:#9b762e;
    color:#9b762e !important;
}

.certificate-action-primary:hover,
.certificate-action-primary:focus{
    background:#302d28;
    color:#fff !important;
}

.certificate-note{
    margin:14px 0 0;
    color:#5d5a54;
    font-size:13px;
    line-height:1.5;
}

.certificate-note i{
    color:#31805a;
    margin-right:5px;
}

@media (max-width: 900px){
    .certificate-page{
        padding-top:28px;
    }

    .certificate-hero{
        grid-template-columns:1fr;
        gap:24px;
    }
}

@media (max-width: 600px){
    .certificate-page{
        padding:24px 16px 48px;
    }

    .certificate-hero{
        padding-bottom:22px;
    }

    .certificate-hero h1{
        font-size:28px;
    }

    .certificate-hero-copy > p:last-child{
        font-size:14px;
        line-height:1.6;
    }

    .certificate-facts{
        grid-template-columns:1fr;
        gap:10px;
    }

    .certificate-facts div{
        display:grid;
        grid-template-columns:86px minmax(0, 1fr);
        padding:0 0 0 12px;
    }

    .certificate-facts dt,
    .certificate-facts dd{
        margin:0;
    }

    .certificate-document{
        margin-top:20px;
    }

    .certificate-preview{
        overflow-x:auto;
    }

    .certificate-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .certificate-action{
        width:100%;
    }
}
