@font-face {
    font-family: "Montserrat Testing";
    src: url("/assets/fonts/Montserrat-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat Testing";
    src: url("/assets/fonts/Montserrat-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.public-page {
    --testing-page-bg: #f3f6fb;
    --testing-surface: #ffffff;
    --testing-text: #222a35;
    --testing-muted: #667eac;
    --testing-border: #e5ebf6;
    --testing-blue: #0039a6;
    --testing-blue-deep: #002874;
    --testing-blue-soft: #eaf1ff;
    --testing-red: #dd083f;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--testing-text);
    background: var(--testing-page-bg);
    font-family: "Montserrat Testing", Montserrat, Arial, sans-serif;
    font-weight: 400;
}

.public-page .testing-header {
    width: 100%;
    min-height: 86px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    background: var(--testing-blue-deep);
}

.public-page .testing-header-inner {
    display: flex;
    width: min(1120px, calc(100% - 48px));
    min-height: 86px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-page .testing-brand-group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 26px;
}

.public-page .testing-brand-group img {
    display: block;
    max-width: 100%;
    height: auto;
}

.public-page .testing-logo-ranepa {
    width: 116px;
}

.public-page .testing-logo-faculty {
    width: 142px;
}

.public-page .testing-header-context {
    flex: 0 0 auto;
    color: #dce7ff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: right;
    text-transform: uppercase;
}

.public-page .testing-main {
    display: block;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(38px, 7vw, 76px) 0;
}

.public-page .testing-surface {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
    overflow: hidden;
    border: 1px solid var(--testing-border);
    border-radius: 18px;
    background: var(--testing-surface);
    box-shadow: 0 18px 54px rgba(19, 47, 93, 0.1);
}

.public-page .testing-intro {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 488px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(34px, 5vw, 58px);
    color: #ffffff;
    background: linear-gradient(145deg, var(--testing-blue) 0%, var(--testing-blue-deep) 100%);
}

.public-page .testing-intro::before,
.public-page .testing-intro::after {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    content: "";
}

.public-page .testing-intro::before {
    top: -128px;
    right: -122px;
    width: 310px;
    height: 310px;
    border: 54px solid rgba(255, 255, 255, 0.08);
}

.public-page .testing-intro::after {
    right: 54px;
    bottom: -128px;
    width: 245px;
    height: 245px;
    background: rgba(49, 133, 255, 0.3);
}

.public-page .testing-kicker,
.public-page .testing-form-kicker {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.public-page .testing-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    color: #dce7ff;
    line-height: 1.45;
}

.public-page .testing-kicker::before {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--testing-red);
    content: "";
}

.public-page .testing-intro h1 {
    max-width: 440px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 3.8vw, 42px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.public-page .testing-intro h1 span {
    display: block;
    margin-top: 10px;
    font-size: clamp(21px, 2.4vw, 25px);
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.public-page .testing-steps {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 13px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
}

.public-page .testing-steps li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
}

.public-page .testing-steps li > span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 500;
}

.public-page .testing-steps b {
    font-weight: 400;
}

.public-page .testing-form-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 58px);
    background: var(--testing-surface);
}

.public-page .testing-form-kicker {
    margin: 0 0 13px;
    color: var(--testing-blue);
    line-height: 1.4;
}

.public-page .testing-form-panel h2 {
    margin: 0;
    color: var(--testing-text);
    font-size: clamp(27px, 3.4vw, 38px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -0.028em;
}

.public-page .testing-form-copy {
    margin: 15px 0 29px;
    color: var(--testing-muted);
    font-size: 14px;
    line-height: 1.55;
}

.public-page .testing-form {
    display: grid;
    gap: 13px;
}

.public-page .testing-secondary-action {
    margin-top: 10px;
}

.public-page .field-label {
    margin: 0;
    color: var(--testing-text);
    font-size: 13px;
    font-weight: 500;
}

.public-page .pin-input {
    width: 100%;
    min-height: 64px;
    padding: 15px 18px;
    border: 1px solid var(--testing-border);
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: var(--testing-text);
    font-family: inherit;
    font-size: clamp(23px, 4vw, 29px);
    font-weight: 500;
    letter-spacing: 0.115em;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.public-page .pin-input:focus {
    border-color: var(--testing-blue);
    box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.15);
}

.public-page .text-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--testing-border);
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: var(--testing-text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.public-page .text-input:focus {
    border-color: var(--testing-blue);
    box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.15);
}

.public-page .text-input:disabled {
    border-color: var(--testing-border);
    background: var(--testing-page-bg);
    color: #8794aa;
    box-shadow: none;
    cursor: not-allowed;
}

.public-page .field-help {
    margin: -4px 0 0;
    color: var(--testing-muted);
    font-size: 12px;
    line-height: 1.5;
}

.public-page .button {
    width: 100%;
    min-height: 56px;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.public-page .button-primary {
    margin-top: 10px;
    border-color: var(--testing-blue);
    background: var(--testing-blue);
    color: #ffffff;
}

.public-page .button-primary:hover:not(:disabled) {
    border-color: var(--testing-blue-deep);
    background: var(--testing-blue-deep);
}

.public-page .button-ghost {
    border-color: var(--testing-border);
    background: transparent;
    color: var(--testing-blue);
}

.public-page .button-ghost:hover:not(:disabled) {
    border-color: var(--testing-blue);
    background: var(--testing-blue-soft);
}

.public-page .button:focus-visible,
.public-page .pin-input:focus-visible,
.public-page .text-input:focus-visible {
    outline: 3px solid rgba(221, 8, 63, 0.35);
    outline-offset: 3px;
}

.public-page .testing-entry-switcher {
    min-width: 0;
}

.public-page .testing-entry-divider {
    display: flex;
    margin: 18px 0;
    align-items: center;
    gap: 12px;
    color: var(--testing-muted);
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
}

.public-page .testing-entry-divider::before,
.public-page .testing-entry-divider::after {
    height: 1px;
    flex: 1 1 auto;
    background: var(--testing-border);
    content: "";
}

.public-page .testing-entry-switch {
    min-height: 50px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.35;
}

.public-page .testing-entry-divider + .testing-entry-switch {
    margin-top: 0;
}

.public-page .button-ghost.testing-entry-switch-emphasis {
    border-width: 2px;
    border-color: var(--testing-blue);
    background: var(--testing-blue-soft);
    color: var(--testing-blue-deep);
    box-shadow: 0 5px 15px rgba(0, 57, 166, 0.08);
    font-weight: 500;
}

.public-page .button-ghost.testing-entry-switch-emphasis:hover:not(:disabled) {
    border-color: var(--testing-blue-deep);
    background: #dce8ff;
    box-shadow: 0 7px 18px rgba(0, 57, 166, 0.13);
}

.public-page .testing-fio-fields {
    display: grid;
    gap: 7px;
}

.public-page .testing-fio-fields .field-label:not(:first-child) {
    margin-top: 5px;
}

.public-page .testing-no-middle-name {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: 2px;
    padding: 5px 0;
    align-items: center;
    gap: 10px;
    color: var(--testing-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
}

.public-page .testing-no-middle-name input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    margin: 0;
    accent-color: var(--testing-blue);
    cursor: pointer;
}

.public-page .testing-no-middle-name-help {
    display: block;
    margin: -4px 0 2px;
    color: var(--testing-muted);
    font-size: 11px;
    line-height: 1.45;
}

.public-page .testing-identity-card {
    margin: 22px 0 12px;
    padding: 15px 17px;
    border-left: 4px solid var(--testing-red);
    border-radius: 0 8px 8px 0;
    background: var(--testing-blue-soft);
}

.public-page .testing-identity-card span,
.public-page .testing-issued-pin span {
    display: block;
    margin-bottom: 5px;
    color: var(--testing-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.public-page .testing-identity-card strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--testing-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.public-page .testing-issued-pin {
    padding: 16px 18px;
    border: 1px solid #bfd2f8;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.public-page .testing-issued-pin output {
    display: block;
    color: var(--testing-blue-deep);
    font-size: clamp(27px, 4vw, 34px);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.public-page .testing-pin-warning {
    margin: 17px 0 8px;
    font-size: 12px;
    line-height: 1.55;
}

.public-page .testing-pin-warning strong {
    display: block;
    margin: 8px 0 2px;
    color: var(--testing-red);
    font-weight: 500;
}

.public-page .testing-access-notice {
    margin: 20px 0 24px;
    padding: 14px 16px;
    border: 1px solid #cbdcff;
    background: var(--testing-blue-soft);
    color: var(--testing-text);
}

.public-page .notice {
    margin: -8px 0 22px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.public-page .notice.testing-access-notice {
    margin: 20px 0 24px;
    border-color: #efb7c4;
    background: #fff0f3;
    color: #8f1734;
}

.public-page .testing-mobile-copy {
    display: none;
}

.public-page .testing-help-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--testing-blue);
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.public-page .testing-help-link:hover {
    color: var(--testing-blue-deep);
}

.public-page .testing-help-link:focus-visible,
.public-page .testing-help-close:focus-visible,
.public-page .testing-faq-item summary:focus-visible {
    outline: 3px solid rgba(221, 8, 63, 0.35);
    outline-offset: 3px;
}

.public-page .testing-help-icon {
    display: grid;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.public-page.testing-help-open {
    overflow: hidden;
}

.public-page .testing-help-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(680px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100vh - 48px);
    max-height: calc(100svh - 48px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 18px;
    background: var(--testing-surface);
    color: var(--testing-text);
    box-shadow: 0 24px 70px rgba(4, 18, 48, 0.3);
}

.public-page .testing-help-dialog:not([open]) {
    display: none;
}

.public-page .testing-help-dialog::backdrop {
    background: rgba(5, 24, 62, 0.62);
}

.public-page .testing-help-dialog-inner {
    min-width: 0;
    background: var(--testing-surface);
}

.public-page .testing-help-header {
    display: flex;
    padding: 25px 28px;
    align-items: center;
    gap: 16px;
    background: var(--testing-blue-deep);
    color: #ffffff;
}

.public-page .testing-help-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.public-page .testing-help-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.public-page .testing-help-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.public-page .testing-help-header p {
    margin: 6px 0 0;
    color: #dce7ff;
    font-size: 12px;
    line-height: 1.45;
}

.public-page .testing-faq-list {
    padding: 10px 28px 24px;
}

.public-page .testing-faq-item {
    border-bottom: 1px solid var(--testing-border);
    transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.public-page .testing-faq-item[open] {
    margin: 10px -14px;
    padding: 0 14px 0 11px;
    border: 1px solid #cbdcff;
    border-left: 4px solid var(--testing-blue);
    border-radius: 14px;
    background: #f4f7ff;
    box-shadow: 0 10px 26px rgba(0, 40, 116, 0.1);
}

.public-page .testing-faq-list.testing-faq-has-open .testing-faq-item:not([open]) {
    opacity: 0.65;
}

.public-page .testing-faq-list.testing-faq-has-open .testing-faq-item:not([open]):hover,
.public-page .testing-faq-list.testing-faq-has-open .testing-faq-item:not([open]):focus-within {
    opacity: 0.88;
}

.public-page .testing-faq-item summary {
    display: flex;
    min-height: 60px;
    padding: 16px 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--testing-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.public-page .testing-faq-item summary::-webkit-details-marker {
    display: none;
}

.public-page .testing-faq-item summary:focus-visible {
    outline: 2px solid var(--testing-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.public-page .testing-faq-item[open] summary {
    color: var(--testing-blue-deep);
}

.public-page .testing-faq-item summary::marker {
    content: "";
}

.public-page .testing-faq-indicator {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--testing-blue-soft);
    color: var(--testing-blue);
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
}

.public-page .testing-faq-indicator::before {
    content: "+";
}

.public-page .testing-faq-item[open] .testing-faq-indicator::before {
    content: "−";
}

.public-page .testing-faq-item[open] .testing-faq-indicator {
    background: var(--testing-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 57, 166, 0.22);
}

.public-page .testing-faq-item p {
    margin: -3px 42px 18px 0;
    color: var(--testing-muted);
    font-size: 13px;
    line-height: 1.6;
}

.public-page [hidden] {
    display: none !important;
}

.public-page .testing-faq-answer {
    padding: 0 42px 20px 0;
}

.public-page .testing-faq-answer p {
    margin: -3px 0 14px;
}

.public-page .testing-reset-start-form {
    max-width: 260px;
}

.public-page .testing-reset-button {
    min-height: 48px;
    margin-top: 0;
}

.public-page .testing-reset-view {
    min-height: 330px;
    padding: 34px 42px 38px;
}

.public-page .testing-reset-kicker {
    margin: 0 0 10px;
    color: var(--testing-blue);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.public-page .testing-reset-view h3 {
    margin: 0;
    color: var(--testing-text);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.public-page .testing-reset-view h3:focus {
    outline: none;
}

.public-page .testing-reset-copy,
.public-page .testing-reset-status > p {
    margin: 12px 0 24px;
    color: var(--testing-muted);
    font-size: 13px;
    line-height: 1.6;
}

.public-page .testing-reset-form {
    max-width: 430px;
}

.public-page .testing-reset-notice {
    max-width: 430px;
    margin: 0 0 18px;
}

.public-page .testing-reset-status {
    display: flex;
    min-height: 360px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.public-page .testing-reset-spinner,
.public-page .testing-reset-result-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
}

.public-page .testing-reset-spinner {
    box-sizing: border-box;
    border: 4px solid var(--testing-blue-soft);
    border-top-color: var(--testing-blue);
    animation: testing-reset-spin 850ms linear infinite;
}

.public-page .testing-reset-result-icon {
    background: var(--testing-blue-soft);
    color: var(--testing-blue);
    font-size: 25px;
    font-weight: 500;
}

.public-page .testing-reset-result-icon-error {
    background: #fff0f3;
    color: var(--testing-red);
}

.public-page .testing-reset-result-actions {
    width: min(100%, 390px);
}

.public-page .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.public-page .testing-retake-person {
    margin: 0 0 18px;
    padding: 13px 15px;
    overflow-wrap: anywhere;
    border-left: 3px solid var(--testing-red);
    border-radius: 0 7px 7px 0;
    background: var(--testing-blue-soft);
    color: var(--testing-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.public-page .testing-retake-person span {
    display: block;
    margin-bottom: 3px;
    color: var(--testing-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-page .testing-retake-form {
    max-width: none;
}

.public-page .testing-retake-list {
    display: grid;
    max-height: min(390px, 42vh);
    margin: 0 0 18px;
    padding: 0;
    overflow: auto;
    gap: 9px;
    border: 0;
}

.public-page .testing-retake-option {
    display: flex;
    padding: 14px 15px;
    align-items: flex-start;
    gap: 13px;
    border: 1px solid var(--testing-border);
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.public-page .testing-retake-option:hover {
    border-color: rgba(10, 73, 184, 0.5);
    background: var(--testing-blue-soft);
}

.public-page .testing-retake-option:has(input:checked) {
    border-color: var(--testing-blue);
    background: var(--testing-blue-soft);
}

.public-page .testing-retake-option input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: var(--testing-blue);
}

.public-page .testing-retake-option input:focus-visible {
    outline: 3px solid rgba(221, 8, 63, 0.35);
    outline-offset: 3px;
}

.public-page .testing-retake-option strong,
.public-page .testing-retake-confirm-list strong {
    display: block;
    color: var(--testing-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.public-page .testing-retake-option time,
.public-page .testing-retake-confirm-list time {
    display: block;
    margin-top: 5px;
    color: var(--testing-muted);
    font-size: 11px;
    line-height: 1.4;
}

.public-page .testing-retake-confirm-list {
    display: grid;
    max-height: min(300px, 34vh);
    margin: 0 0 20px;
    padding: 0;
    overflow: auto;
    gap: 8px;
    list-style: none;
}

.public-page .testing-retake-confirm-list li {
    padding: 12px 14px;
    border: 1px solid var(--testing-border);
    border-radius: 8px;
    background: var(--testing-blue-soft);
}

.public-page .testing-retake-empty {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid var(--testing-border);
    border-radius: 9px;
    background: var(--testing-blue-soft);
    color: var(--testing-muted);
    font-size: 13px;
    line-height: 1.55;
}

@keyframes testing-reset-spin {
    to {
        transform: rotate(360deg);
    }
}

.public-page .testing-person-name {
    margin: 26px 0 8px;
    padding: 20px;
    overflow-wrap: anywhere;
    border-left: 4px solid var(--testing-red);
    border-radius: 0 8px 8px 0;
    background: var(--testing-blue-soft);
    color: var(--testing-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .public-page .testing-header,
    .public-page .testing-header-inner {
        min-height: 68px;
    }

    .public-page .testing-header-inner {
        width: calc(100% - 32px);
    }

    .public-page .testing-brand-group {
        gap: 14px;
    }

    .public-page .testing-logo-ranepa {
        width: 86px;
    }

    .public-page .testing-logo-faculty {
        width: 102px;
    }

    .public-page .testing-header-context {
        display: none;
    }

    .public-page .testing-main {
        width: min(calc(100% - 28px), 560px);
        padding: 26px 0 34px;
    }

    .public-page .testing-surface {
        grid-template-columns: 1fr;
    }

    .public-page .testing-intro {
        min-height: auto;
        padding: 27px 25px 25px;
    }

    .public-page .testing-intro h1 {
        font-size: 29px;
    }

    .public-page .testing-intro h1 span {
        margin-top: 7px;
        font-size: 20px;
    }

    .public-page .testing-kicker {
        margin-bottom: 16px;
        font-size: clamp(8px, 2.8vw, 11px);
        letter-spacing: 0.08em;
        white-space: nowrap;
    }

    .public-page .testing-steps {
        display: none;
    }

    .public-page .testing-form-panel {
        padding: 29px 25px 31px;
    }

    .public-page .testing-desktop-copy {
        display: none;
    }

    .public-page .testing-mobile-copy {
        display: inline;
    }

    .public-page .testing-form-panel h2 {
        white-space: nowrap;
    }

    .public-page .testing-help-link {
        font-size: clamp(9px, 2.8vw, 11px);
    }

    .public-page .testing-help-dialog {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-height: none;
        margin: 0;
        border-radius: 0;
    }

    .public-page .testing-help-header {
        padding: calc(20px + env(safe-area-inset-top)) 20px 20px;
    }

    .public-page .testing-help-header h2 {
        font-size: 23px;
    }

    .public-page .testing-faq-list {
        padding: 9px 22px calc(22px + env(safe-area-inset-bottom));
    }

    .public-page .testing-faq-item summary {
        min-height: 58px;
        font-size: 13px;
    }

    .public-page .testing-faq-item[open] {
        margin: 8px -10px;
        padding-right: 10px;
        padding-left: 7px;
        border-radius: 12px;
    }

    .public-page .testing-faq-item p {
        margin-right: 36px;
        font-size: 12px;
    }

    .public-page .testing-faq-answer {
        padding-right: 36px;
    }

    .public-page .testing-faq-answer p {
        margin-right: 0;
    }

    .public-page .testing-reset-view {
        min-height: calc(100dvh - 108px - env(safe-area-inset-top));
        padding: 30px 22px calc(28px + env(safe-area-inset-bottom));
    }

    .public-page .testing-reset-view h3 {
        font-size: 23px;
    }

    .public-page .testing-reset-form,
    .public-page .testing-reset-notice {
        max-width: none;
    }

    .public-page .testing-retake-list {
        max-height: none;
    }

    .public-page .testing-retake-option {
        padding: 13px;
    }
}

@media (max-width: 390px) {
    .public-page .testing-brand-group {
        gap: 10px;
    }

    .public-page .testing-logo-ranepa {
        width: 72px;
    }

    .public-page .testing-logo-faculty {
        width: 84px;
    }

    .public-page .testing-main {
        width: calc(100% - 20px);
        padding-top: 18px;
    }

    .public-page .testing-intro,
    .public-page .testing-form-panel {
        padding-left: 20px;
        padding-right: 20px;
    }

    .public-page .pin-input {
        min-height: 60px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 22px;
        letter-spacing: 0.075em;
    }
}

.public-page .testing-main-progress {
    width: min(1180px, calc(100% - 48px));
}

.public-page .testing-surface-progress {
    grid-template-columns: minmax(325px, 0.72fr) minmax(580px, 1.28fr);
}

.public-page .testing-surface-progress .testing-intro {
    min-height: 600px;
    padding: 44px;
}

.public-page .testing-progress-panel {
    min-height: 600px;
    justify-content: center;
    padding: 34px 42px;
}

.public-page .testing-progress-topline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.public-page .testing-progress-refresh-form {
    flex: 0 0 auto;
    margin: 0;
}
.public-page .testing-progress-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 18px;
}

.public-page .testing-progress-logout-form {
    margin: 0;
}


.public-page .testing-progress-refresh {
    display: inline-flex;
    margin: 0 0 4px;
    padding: 7px 0;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--testing-blue);
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.public-page .testing-progress-refresh > span:first-child {
    font-size: 16px;
    line-height: 1;
}

.public-page .testing-progress-refresh:hover {
    color: var(--testing-blue-deep);
}

.public-page .testing-progress-logout {
    margin: 0 0 4px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--testing-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.public-page .testing-progress-logout:hover {
    color: var(--testing-red);
}

.public-page .testing-progress-refresh:focus-visible,
.public-page .testing-progress-logout:focus-visible,
.public-page .testing-progress-action:focus-visible {
    outline: 3px solid rgba(221, 8, 63, 0.35);
    outline-offset: 3px;
}

.public-page .testing-progress-summary {
    display: flex;
    margin-top: 18px;
    align-items: center;
    gap: 15px;
}

.public-page .testing-progress-summary strong {
    min-width: 126px;
    color: var(--testing-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.public-page .testing-progress-bar {
    width: 100%;
    height: 7px;
    flex: 1 1 auto;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: #e8edf5;
    color: #19875f;
}

.public-page .testing-progress-bar::-webkit-progress-bar {
    border-radius: 999px;
    background: #e8edf5;
}

.public-page .testing-progress-bar::-webkit-progress-value {
    border-radius: 999px;
    background: #19875f;
}

.public-page .testing-progress-bar::-moz-progress-bar {
    border-radius: 999px;
    background: #19875f;
}

.public-page .testing-progress-list {
    display: grid;
    margin: 19px 0 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(58px, auto));
    grid-auto-flow: column;
    gap: 8px;
    list-style: none;
}

.public-page .testing-progress-item {
    display: grid;
    min-height: 58px;
    padding: 10px 12px;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    border: 1px solid var(--testing-border);
    border-radius: 9px;
    background: #ffffff;
}

.public-page .testing-progress-item-done {
    border-color: #d3ebdf;
    background: #f6fbf8;
}

.public-page .testing-progress-state-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
}

.public-page .testing-progress-item-done .testing-progress-state-icon {
    background: #19875f;
    color: #ffffff;
}

.public-page .testing-progress-item-pending .testing-progress-state-icon {
    border: 2px solid #c9d1de;
    background: #f2f4f8;
    color: transparent;
}

.public-page .testing-progress-item-title {
    min-width: 0;
    color: var(--testing-text);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.public-page .testing-progress-item-status {
    grid-column: 2;
    margin-top: -7px;
    color: #7b8798;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.public-page .testing-progress-item-done .testing-progress-item-status {
    color: #19875f;
}

.public-page .testing-progress-notice {
    display: grid;
    margin-top: 17px;
    padding: 13px 14px;
    grid-template-columns: 29px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    border-radius: 9px;
    background: var(--testing-blue-soft);
    color: #344764;
}

.public-page .testing-progress-notice-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: var(--testing-blue);
    font-size: 15px;
    font-weight: 500;
}

.public-page .testing-progress-notice p {
    margin: 0;
    font-size: 11px;
    line-height: 1.55;
}

.public-page .testing-progress-notice strong {
    display: block;
    margin-bottom: 2px;
    color: var(--testing-blue-deep);
    font-weight: 500;
}

.public-page .testing-progress-actions {
    display: grid;
    margin-top: 17px;
    grid-template-columns: minmax(170px, 0.8fr) minmax(250px, 1.2fr);
    gap: 9px;
}

.public-page .testing-progress-actions form:only-of-type {
    grid-column: 1 / -1;
}

.public-page .testing-progress-action {
    min-height: 58px;
    margin-top: 0;
    padding: 12px 16px;
    font-size: 12px;
    line-height: 1.35;
}

.public-page .testing-progress-action:disabled {
    border-color: #dce2ec;
    background: #f0f3f7;
    color: #98a3b2;
    cursor: not-allowed;
}

.public-page .testing-progress-action-help {
    grid-column: 2;
    margin: -2px 0 0;
    color: #7b8798;
    font-size: 9px;
    line-height: 1.45;
    text-align: center;
}

.public-page .testing-progress-feedback {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f8fc;
    color: var(--testing-muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.public-page .testing-progress-error {
    display: grid;
    margin-top: 24px;
    padding: 18px;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    border: 1px solid #f3cbd5;
    border-radius: 10px;
    background: #fff7f9;
}

.public-page .testing-progress-error-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f3;
    color: var(--testing-red);
    font-size: 20px;
    font-weight: 500;
}

.public-page .testing-progress-error strong {
    color: var(--testing-text);
    font-size: 14px;
    font-weight: 500;
}

.public-page .testing-progress-error p {
    margin: 6px 0 0;
    color: var(--testing-muted);
    font-size: 12px;
    line-height: 1.55;
}

.public-page .testing-progress-error-actions {
    margin-top: 18px;
}

@media (max-width: 920px) {
    .public-page .testing-main-progress {
        width: min(calc(100% - 48px), 720px);
    }

    .public-page .testing-surface-progress {
        grid-template-columns: 1fr;
    }

    .public-page .testing-surface-progress .testing-intro {
        min-height: 310px;
        padding: 38px;
    }

    .public-page .testing-progress-panel {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .public-page .testing-main-progress {
        width: min(calc(100% - 28px), 560px);
    }

    .public-page .testing-surface-progress .testing-intro {
        min-height: auto;
        padding: 27px 25px 25px;
    }

    .public-page .testing-progress-panel {
        min-height: 0;
        padding: 29px 25px 31px;
    }

    .public-page .testing-progress-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .public-page .testing-progress-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .public-page .testing-progress-refresh,
    .public-page .testing-progress-logout {
        min-height: 44px;
    }

    .public-page .testing-progress-summary {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .public-page .testing-progress-list,
    .public-page .testing-progress-actions {
        grid-template-columns: 1fr;
    }

    .public-page .testing-progress-list {
        grid-template-rows: none;
        grid-auto-flow: row;
    }

    .public-page .testing-progress-action-help,
    .public-page .testing-progress-actions form:only-of-type {
        grid-column: 1;
    }
}

@media (max-width: 390px) {
    .public-page .testing-progress-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .public-page .testing-progress-item {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-page *,
    .public-page *::before,
    .public-page *::after {
        transition: none !important;
    }

    .public-page .testing-reset-spinner {
        animation: none;
        border-color: var(--testing-blue);
    }
}
