@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, 4.5vw, 50px);
    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.7vw, 29px);
    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 .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 {
    outline: 3px solid rgba(221, 8, 63, 0.35);
    outline-offset: 3px;
}

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

.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;
    }
}

@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);
    }
}


/* NTR assessment visual layer — inspired by the RNTR palette, with an original orbit motif. */
.ntr-public-page {
    --testing-page-bg: #f2f3f7;
    --testing-surface: #ffffff;
    --testing-text: #102b4d;
    --testing-muted: #4c6175;
    --testing-border: #dbe4ef;
    --testing-blue: #013aa7;
    --testing-blue-deep: #002874;
    --testing-blue-soft: #eaf5ff;
    --testing-red: #0bbbef;
    background:
        radial-gradient(circle at 8% 16%, rgba(11, 187, 239, 0.12), transparent 28rem),
        radial-gradient(circle at 92% 88%, rgba(49, 133, 255, 0.12), transparent 30rem),
        var(--testing-page-bg);
}

.ntr-public-page .testing-header {
    min-height: 92px;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background: #013aa7;
}

.ntr-public-page .testing-header-inner {
    width: min(1180px, calc(100% - 56px));
    min-height: 92px;
}

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

.ntr-public-page .testing-header-context {
    color: rgba(255, 255, 255, 0.84);
    letter-spacing: 0.08em;
}

.ntr-public-page .testing-main {
    width: min(1180px, calc(100% - 56px));
    padding: clamp(42px, 6vw, 72px) 0;
}

.ntr-public-page .testing-surface {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    border-color: rgba(1, 58, 167, 0.1);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(1, 40, 117, 0.16);
}

.ntr-public-page .testing-intro {
    min-height: 552px;
    padding: clamp(38px, 5vw, 62px);
    background:
        linear-gradient(145deg, rgba(1, 58, 167, 0.96), rgba(0, 40, 116, 1));
}

.ntr-public-page .testing-intro::before {
    top: -220px;
    right: -175px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(11, 187, 239, 0.46);
    background: transparent;
    box-shadow:
        0 0 0 58px rgba(11, 187, 239, 0.07),
        0 0 0 116px rgba(49, 133, 255, 0.07),
        0 0 0 174px rgba(255, 255, 255, 0.035);
}

.ntr-public-page .testing-intro::after {
    right: -22px;
    bottom: -32px;
    width: 360px;
    height: 290px;
    border-radius: 0;
    background:
        radial-gradient(circle at 12% 68%, rgba(11, 187, 239, 0.95) 0 4px, transparent 5px),
        radial-gradient(circle at 35% 45%, rgba(255, 255, 255, 0.7) 0 3px, transparent 4px),
        radial-gradient(circle at 57% 74%, rgba(49, 133, 255, 0.95) 0 5px, transparent 6px),
        radial-gradient(circle at 81% 35%, rgba(11, 187, 239, 0.78) 0 4px, transparent 5px),
        radial-gradient(ellipse at 104% 112%, transparent 0 42%, rgba(11, 187, 239, 0.28) 42.4%, rgba(11, 187, 239, 0.28) 43%, transparent 43.4%),
        radial-gradient(ellipse at 104% 112%, transparent 0 61%, rgba(255, 255, 255, 0.16) 61.4%, rgba(255, 255, 255, 0.16) 62%, transparent 62.4%),
        radial-gradient(ellipse at 104% 112%, transparent 0 79%, rgba(49, 133, 255, 0.18) 79.4%, rgba(49, 133, 255, 0.18) 80%, transparent 80.4%);
    opacity: 0.9;
}

.ntr-public-page .testing-intro > * {
    position: relative;
    z-index: 1;
}

.ntr-public-page .testing-kicker {
    max-width: 470px;
    color: rgba(255, 255, 255, 0.78);
    white-space: normal;
}

.ntr-public-page .testing-kicker::before {
    background: #0bbbef;
    box-shadow: 0 0 0 5px rgba(11, 187, 239, 0.13);
}

.ntr-public-page .testing-intro h1 {
    max-width: 570px;
    font-size: clamp(34px, 4.2vw, 50px);
    font-weight: 500;
    line-height: 1.08;
}

.ntr-public-page .testing-intro h1 span {
    max-width: 540px;
    margin-top: 14px;
    font-size: clamp(22px, 2.45vw, 29px);
    line-height: 1.25;
}

.ntr-public-page .testing-steps li > span {
    border-color: rgba(11, 187, 239, 0.68);
    background: rgba(11, 187, 239, 0.12);
    color: #ffffff;
}

.ntr-public-page .testing-form-panel {
    padding: clamp(38px, 4.7vw, 58px);
}

.ntr-public-page .testing-form-kicker,
.ntr-public-page .testing-reset-kicker {
    color: #013aa7;
}

.ntr-public-page .testing-form-panel h2 {
    color: #002874;
}

.ntr-public-page .pin-input {
    min-height: 62px;
    border-color: #cad8e8;
    border-radius: 12px;
    color: #002874;
    font-size: clamp(21px, 2.25vw, 27px);
    font-weight: 500;
    letter-spacing: 0.1em;
    box-shadow: 0 0 8px rgba(1, 40, 117, 0.12);
}

.ntr-public-page .pin-input:focus {
    border-color: #3185ff;
    box-shadow: 0 0 0 4px rgba(49, 133, 255, 0.16);
}

.ntr-public-page .button {
    border-radius: 12px;
}

.ntr-public-page .button-primary {
    border-color: #013aa7;
    background: #013aa7;
}

.ntr-public-page .button-primary:hover:not(:disabled) {
    border-color: #002874;
    background: #002874;
}

.ntr-public-page .button:focus-visible,
.ntr-public-page .pin-input:focus-visible,
.ntr-public-page .testing-help-link:focus-visible,
.ntr-public-page .testing-help-close:focus-visible,
.ntr-public-page .testing-faq-item summary:focus-visible {
    outline-color: rgba(11, 187, 239, 0.7);
}

.ntr-public-page .testing-help-header {
    background: #013aa7;
}

.ntr-public-page .testing-faq-item[open] {
    border-color: #b9dff2;
    border-left-color: #0bbbef;
    background: #f2f8ff;
    box-shadow: 0 10px 26px rgba(1, 40, 117, 0.1);
}

.ntr-public-page .testing-faq-indicator,
.ntr-public-page .testing-reset-result-icon {
    background: #e8f7fc;
    color: #013aa7;
}

.ntr-public-page .testing-faq-item[open] .testing-faq-indicator {
    background: #013aa7;
}

.ntr-public-page .testing-person-name,
.ntr-public-page .testing-retake-person {
    border-left-color: #0bbbef;
    background: #edf7ff;
}

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

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

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

    .ntr-public-page .testing-main {
        width: min(calc(100% - 28px), 590px);
        padding: 28px 0 38px;
    }

    .ntr-public-page .testing-surface {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .ntr-public-page .testing-intro {
        min-height: auto;
        padding: 30px 26px 28px;
    }

    .ntr-public-page .testing-intro::before {
        top: -205px;
        right: -205px;
        width: 440px;
        height: 440px;
    }

    .ntr-public-page .testing-intro::after {
        right: -105px;
        bottom: -105px;
        opacity: 0.55;
    }

    .ntr-public-page .testing-intro h1 {
        max-width: 500px;
        font-size: clamp(28px, 8vw, 34px);
    }

    .ntr-public-page .testing-intro h1 span {
        max-width: 500px;
        font-size: clamp(18px, 5.3vw, 22px);
    }

    .ntr-public-page .testing-kicker {
        font-size: clamp(8px, 2.6vw, 11px);
        white-space: normal;
    }

    .ntr-public-page .testing-form-panel {
        padding: 31px 26px 34px;
    }
}

@media (max-width: 390px) {
    .ntr-public-page .testing-logo-ranepa {
        width: 118px;
    }

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

    .ntr-public-page .pin-input {
        font-size: 20px;
        letter-spacing: 0.055em;
    }
}
