.school-certificate-sheet {
    position: relative;
    width: 100%;
    margin: 24px 0;
    container-type: inline-size;
    scroll-margin-top: 90px;
}

.school-certificate-sheet > img {
    display: block;
    width: 100%;
    height: auto;
}

.school-certificate-fields {
    position: absolute;
    inset: 0;
    color: #282123;
    font-family: "Segoe UI", Arial, sans-serif;
}

.school-certificate-name,
.school-certificate-profile,
.school-certificate-date {
    position: absolute;
    display: block;
    overflow-wrap: anywhere;
}

.school-certificate-name {
    inset: 52.8% 9% auto;
    transform: translateY(-50%);
    color: #742938;
    text-align: center;
    font: 700 4.16cqw/1.06 Georgia, "Times New Roman", serif;
}

.school-certificate-profile {
    inset: 59.5% 13% auto;
    transform: translateY(-50%);
    text-align: center;
    font-size: 1.78cqw;
    line-height: 1.14;
}

.school-certificate-date {
    top: 86.45%;
    left: 11.28%;
    transform: translateY(-50%);
    font-size: 1.66cqw;
    line-height: 1;
}

@media (max-width: 620px) {
    .young-school-page .young-school-profile label {
        grid-template-columns: auto 1fr;
        column-gap: 5px;
        font-size: 14px;
    }

    .young-school-page .young-school-profile input {
        grid-column: 1 / -1;
        min-height: 46px;
        font-size: 16px;
    }

    .young-school-page .young-school-options label {
        min-height: 44px;
        font-size: 16px;
    }
}

@media print {
    @page { size: A4 landscape; margin: 0; }

    .young-school-page .young-school-profile,
    .young-school-page .young-school-start,
    .young-school-page .young-school-certificate[hidden],
    .young-school-certificate-inner > :not(.school-certificate-sheet),
    body:has(.young-school-page) > .skip-link {
        display: none !important;
    }

    .young-school-page .young-school-test-section,
    .young-school-test-section > .shell,
    .young-school-page .young-school-certificate,
    .young-school-certificate-inner {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        background: #fff;
    }

    .school-certificate-sheet {
        width: 296mm;
        margin: 0;
        break-inside: avoid;
    }
}
