@font-face {
    font-family: Lato;
    src: url('/assets/Lato-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Lato;
    src: url('/assets/Lato-Bold.woff2') format('woff2');
    font-weight: 600 900;
    font-display: swap;
}
:root { --page-bg: #f6f8f6; --green: #4d7c49; --green-hover: #3e663b; --border: #e1e7df; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100svh; margin: 0; display: flex; flex-direction: column; color: #2d3730; background: var(--page-bg); font: 15px/1.5 Lato, sans-serif; }
main { flex: 1; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: #2869b3; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
p { margin: 0 0 12px; }
h1, h2, h3 { overflow-wrap: anywhere; }
.site-header { min-height: 80px; padding: 14px 32px; background: white; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-logo { display: block; flex-shrink: 0; }
.header-logo img { display: block; width: 48px; height: 48px; object-fit: contain; }
.header-phone { color: #374239; font-size: 22px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-contact { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.header-time { width: 132px; margin-left: 20px; color: #69736b; font-size: 12px; line-height: 18px; }
.header-account { display: flex; align-items: center; gap: 24px; min-width: 0; font-size: 14px; }
.header-account span { min-width: 0; overflow-wrap: anywhere; }
.header-account #logout { flex-shrink: 0; min-height: 40px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; color: var(--green); }
.header-account #logout:hover { background: #f1f6ee; text-decoration: none; }
.text-button { padding: 0; border: 0; background: transparent; color: #2869b3; text-align: left; }
.text-button:hover { color: #1e528c; text-decoration: underline; }
.button { min-height: 44px; padding: 11px 28px; border: 1px solid var(--green); border-radius: 42px; color: white; background: var(--green); font-weight: 700; line-height: 20px; }
.button:hover:not(:disabled) { background: var(--green-hover); border-color: var(--green-hover); box-shadow: 0 3px 8px #263e2014; }
.button-outline { background: white; color: var(--green); border-color: #9bb795; }
.button-outline:hover:not(:disabled) { background: #edf4e9; border-color: var(--green); }
.error-notice { padding: 16px 20px; background: #fff5f3; border: 1px solid #e5b6ae; border-radius: 8px; color: #9e1910; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.notice { max-width: 690px; margin: 24px auto; padding: 16px; }
.login-page { padding: 56px 24px 64px; }
.registration { width: 480px; max-width: 100%; margin: 0 auto; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 8px 32px #243a1d08; text-align: center; }
.registration-top { margin: 0 0 28px; padding: 30px 36px; background: linear-gradient(108deg, #fafcf8, #f1f5ee); border-bottom: 1px solid var(--border); border-radius: 16px 16px 0 0; font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -.6px; }
.registration-form { padding: 0 36px 32px; }
.registration-form__label { display: block; width: 320px; max-width: 100%; margin: 0 auto 20px; color: #536058; font-size: 14px; text-align: left; }
.registration-form__label input { display: block; width: 100%; height: 52px; margin-top: 8px; padding: 14px 16px; border: 1px solid #cbd5c7; border-radius: 8px; background: #fdfefc; color: #2d3730; font-size: 16px; }
.registration-form__label input:hover { border-color: #9bb795; }
.registration-form__label input:focus { border-color: var(--green); background: white; }
.registration__btn-enter { display: block; width: 320px; max-width: 100%; margin: 28px auto 24px; }
.registration-hint { font-size: 13px; line-height: 20px; color: #69736b; max-width: 320px; margin: 0 auto; }
.registration-link { display: inline-block; margin-bottom: 20px; color: #2869b3; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.registration-warning { padding: 24px 32px; border-top: 1px solid #ead6ac; border-radius: 0 0 16px 16px; background: #fffbf2; color: #745013; font-size: 15px; line-height: 24px; }
.registration-warning p:last-child { margin-bottom: 0; }
.site-footer { padding: 28px 24px; border-top: 1px solid var(--border); text-align: center; background: #f0f3ef; color: #616d64; font-size: 12px; }
.site-footer p { max-width: 760px; margin: 0 auto 12px; line-height: 22px; }
.footer-license { white-space: nowrap; }
.site-footer .footer-copyright { color: #69736b; margin-bottom: 0; }
.testing { width: calc(100% - 48px); max-width: 900px; padding: 36px 0 48px; margin: 0 auto; }
.page-title { font-size: 28px; line-height: 36px; letter-spacing: -.4px; margin: 0 0 20px; }
.cases__tabs-nav { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.cases__tabs-nav__item { min-height: 48px; padding: 12px 16px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #69736b; font-size: 14px; letter-spacing: .7px; text-transform: uppercase; }
.cases__tabs-nav__item:hover { color: var(--green); background: #edf3e9; }
.cases__tabs-nav__item.active { color: var(--green); border-bottom-color: #6aa666; }
#main-panel, #faq-panel { background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 2px 8px #243a1d04; }
.detail-middle { margin: 0 32px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.detail-middle:last-child { border-bottom: 0; }
.testing__title { font-size: 18px; line-height: 26px; font-weight: 600; margin: 0 0 16px; }
.testing__text { font-size: 15px; line-height: 24px; white-space: pre-line; }
.testing__instrument-list { padding-left: 24px; font-size: 15px; line-height: 24px; }
.testing__instrument-list li { margin-bottom: 12px; padding-left: 4px; }
.testing__instrument-list li::marker { color: var(--green); font-weight: 700; }
#list-status, #page-error, #reload-list { margin: 24px 32px; }
.testing__products-item, .testing__list-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; padding: 12px 16px; border: 1px solid transparent; border-radius: 8px; color: #2d3730; text-align: left; line-height: 22px; overflow-wrap: anywhere; }
.testing__products-item:last-child, .testing__list-item:last-child { margin-bottom: 0; }
.testing__products-item { background: #edf7f0; border-color: #deeee1; }
.testing__products-item::after { content: '✓'; display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: #dbeedd; color: var(--green); font-weight: 700; }
.testing__list-item { background: #f1f6fb; border-color: #e5edf4; }
.testing__list-item .quiz-name { flex: 1; min-width: 0; }
.testing__list-item .quiz-action { flex-shrink: 0; display: inline-block; min-height: 40px; padding: 9px 22px; border: 1px solid #8eaf86; border-radius: 100px; background: white; color: var(--green); font-weight: 700; line-height: 20px; white-space: nowrap; }
.testing__list-item:hover:not(:disabled) { background: #eaf2f9; border-color: #b3c7d9; }
.testing__list-item:hover:not(:disabled) .quiz-action, .testing__list-item:focus-visible .quiz-action { background: var(--green); border-color: var(--green); color: white; }
.testing-question-overflow { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 40px 24px; border: 0; background: var(--page-bg); color: #2d3730; }
.testing-question-overflow::backdrop { background: var(--page-bg); }
.testing-question { max-width: 860px; margin: 0 auto; }
.testing-question__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.testing-question__title { flex: 1; min-width: 0; }
.testing-question__title span, .testing-question__head > button { font-size: 13px; line-height: 20px; }
.testing-question__head > button { flex-shrink: 0; padding: 10px 0; }
.testing-question__title span { color: #69736b; }
.testing-question__title h2 { font-size: 18px; font-weight: 600; margin: 6px 0 0; }
.testing-question__body { padding: 40px 52px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 4px 20px #243a1d05; }
.testing-question__number { font-size: 13px; line-height: 20px; color: #69736b; margin-bottom: 8px; }
#question-number { display: inline-block; padding: 6px 12px; margin-bottom: 24px; border-radius: 100px; background: #edf4e9; color: var(--green); font-weight: 700; }
#answer-hint { margin-top: 12px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { padding: 0; width: 100%; white-space: pre-line; }
.testing__answers-list { margin: 20px 0 32px; }
.testing__answers-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; line-height: 23px; cursor: pointer; }
.testing__answers-item:hover { background: #f8faf6; border-color: #a9bea2; }
.testing__answers-item:has(input:checked) { background: #eef6eb; border-color: #8eaf86; }
.testing__answers-item input { accent-color: var(--green); width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; }
.testing__answers-item span { white-space: pre-line; overflow-wrap: anywhere; }
.testing__buttons { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 24px; }
.testing__buttons > :only-child { margin-left: auto; }
#next-question { margin-left: auto; }
.submission-status { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; padding: 16px; border-radius: 8px; background: #edf4e9; color: var(--green); }
.submission-status::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; border: 2px solid #c6d8c1; border-top-color: var(--green); border-radius: 50%; animation: saving-spin 1s linear infinite; }
@keyframes saving-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .submission-status::before { animation: none; } }
#result-title { font-size: 24px; line-height: 32px; }
.testing-img { max-width: 80px; height: auto; margin-bottom: 20px; }
.testing-success-next { margin-top: 40px; padding-top: 32px; border-top: 1px solid #ededed; }
@media (max-width: 767px) {
    .site-header { min-height: 72px; padding: 12px 20px; gap: 14px; }
    .header-logo img { width: 34px; height: 34px; }
    .header-phone { font-size: 17px; }
    .header-contact { flex-wrap: wrap; }
    .header-time { width: auto; margin: 2px 0 0 12px; text-align: right; }
    .header-account { gap: 12px; font-size: 13px; }
    .header-account #logout { padding: 8px 12px; }
    .login-page { padding: 24px 12px 40px; }
    .registration-top { font-size: 30px; padding: 24px; margin-bottom: 24px; }
    .registration-form { padding: 0 24px 28px; }
    .registration-warning { padding: 24px; }
    .testing { width: calc(100% - 24px); padding-top: 24px; }
    .page-title { margin: 0 8px 16px; font-size: 26px; }
    .cases__tabs-nav { gap: 0; padding: 0 4px; margin-bottom: 16px; }
    .cases__tabs-nav__item { padding: 12px 8px; font-size: 12px; letter-spacing: .2px; }
    .detail-middle { margin: 0 20px; padding: 24px 0; }
    #list-status, #page-error, #reload-list { margin-left: 20px; margin-right: 20px; }
    .testing__list-item { flex-wrap: wrap; gap: 12px; }
    .testing__list-item .quiz-name { flex-basis: 100%; }
    .testing__list-item .quiz-action { margin-left: auto; }
    .testing-question-overflow { padding: 20px 12px; }
    .testing-question__head { flex-direction: column; gap: 8px; padding: 0 8px; margin-bottom: 16px; }
    .testing-question__body { padding: 24px 20px; }
    .testing__answers-item { padding: 14px 12px; }
    .testing__buttons { flex-wrap: wrap; }
    .testing__buttons .button { padding: 11px 20px; }
}
