/* ПУБЛИЧНЫЙ ТЕСТ — в визуальном языке лендинга VERRA × ЮИД */
:root{--blue:#0A325F;--red:#FF0000;--ink:#102B4C;--muted:#60758c;--line:#DCE5EF;--soft:#F6F9FC;--white:#fff;--f:'Montserrat',Arial,sans-serif}

.test{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--soft);color:var(--ink);font:500 15px/1.5 var(--f);-webkit-font-smoothing:antialiased}
.test *{box-sizing:border-box}
.test button,.test input{font:inherit}
.test a{text-decoration:none;color:inherit}
.test h1,.test p{margin:0}
.test svg{display:inline-block;vertical-align:middle;flex-shrink:0}

/* полоса контекста */
.t-note{background:#EAF2FA;text-align:center;font-size:11px;line-height:1.45;padding:9px 16px;color:#506F90;font-weight:600}
.t-note b{color:var(--blue)}

/* шапка */
.t-head{position:sticky;top:0;z-index:20;background:#ffffffed;backdrop-filter:blur(12px);border-bottom:1px solid #e9eef4}
.t-head__in{width:min(860px,calc(100% - 40px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:72px}
.t-brand{display:flex;align-items:center;gap:14px;color:var(--blue)}
.t-brand__logo{height:34px;width:auto;display:block}
.t-head__link{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--blue);transition:color .16s ease}
.t-head__link:hover{color:var(--red)}

/* каркас */
.t-main{flex:1;padding:46px 0 64px}
.t-shell{width:min(860px,calc(100% - 40px));margin:0 auto}

/* надзаголовок над карточкой */
.t-intro{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:22px}
.t-eyebrow{font-weight:600;font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--red)}
.t-chips{display:flex;flex-wrap:wrap;gap:8px}
.t-chip{font-size:11px;font-weight:600;padding:8px 12px;border-radius:999px;background:#eaf2fb;color:#214c7b}
.t-chip--red{color:#b30d19;background:#fff0f2}

/* карточка-экран */
.t-device{background:#fff;border:1px solid #e1e9f1;border-radius:18px;box-shadow:0 18px 44px #173b6014;overflow:hidden}
.t-device__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--blue);color:#fff;padding:14px 24px}
.t-device__brand{font-size:10px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#a9c9e3}
.t-device__counter{font-size:11px;font-weight:600;letter-spacing:.1em;font-variant-numeric:tabular-nums;padding:5px 11px;border-radius:999px;background:#ffffff1f}
.t-device__meta{display:flex;align-items:center;gap:8px}
.t-timer{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border-radius:999px;background:#ffffff14;color:#fff;font-size:11px;font-weight:600;letter-spacing:.08em;font-variant-numeric:tabular-nums;white-space:nowrap}
.t-timer:before{content:'';width:6px;height:6px;border-radius:50%;background:#FF7A7A}
.t-track{height:5px;background:#E7EEF7}
.t-track span{display:block;height:100%;background:linear-gradient(90deg,#FF0000,#ff4d4d);transition:width .35s ease}
.t-preview{background:#FFF4EF;border-bottom:1px solid #f3ded3;color:#8f5c35;font-size:11px;font-weight:600;letter-spacing:.02em;padding:11px 24px}
.t-device__body{padding:32px 36px 36px}

/* типографика внутри карточки */
.t-h1{color:var(--blue);font-weight:600;font-size:clamp(26px,3.6vw,38px);line-height:1.08;letter-spacing:-.05em}
.t-h1--question{font-weight:600;font-size:clamp(21px,2.6vw,29px);line-height:1.3;letter-spacing:-.03em;margin-top:10px}
.t-lead{margin:14px 0 0;max-width:520px;color:#476380;font-size:14px;line-height:1.75;font-weight:600}
.t-meta-line{margin:0 0 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#5e82a4}
.t-meta-line span+span:before{content:'·';margin:0 8px;color:#a0b5c8}

/* иконка состояния */
.t-state{width:56px;height:56px;border-radius:16px;background:#EDF4FB;color:var(--blue);display:grid;place-items:center;margin-bottom:20px}
.t-state--red{background:#fff0f0;color:var(--red)}

/* предупреждение и подсказки */
.t-alert{display:flex;gap:10px;align-items:flex-start;margin-bottom:22px;background:#FFF0F0;color:#8f1c25;border-left:3px solid var(--red);padding:14px 16px;font-size:12.5px;font-weight:600;line-height:1.6}
.t-alert svg{width:18px;height:18px;margin-top:1px}
.t-note-box{margin-top:24px;background:#EDF4FD;border-left:3px solid var(--blue);padding:20px 22px}
.t-note-box p{font-size:12px;line-height:1.7;color:#33587c;font-weight:600}
.t-note-box p+p{margin-top:12px}
.t-rules{display:grid;gap:11px;margin:0;padding:0;list-style:none}
.t-rules li{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.6;color:#33587c;font-weight:600}
.t-rules svg{color:var(--red);margin-top:2px}

/* поле кода и кнопки */
.t-form{margin-top:26px}
.t-field{display:flex;flex-direction:column;gap:8px}
.t-field>span{font-size:11px;font-weight:600;color:#294969}
.t-field input{width:100%;border:1px solid #d7e2ec;border-radius:10px;padding:15px 18px;min-height:60px;font-size:24px;font-weight:600;letter-spacing:.24em;color:var(--blue);background:#fff;outline:none;transition:border-color .16s ease,box-shadow .16s ease}
.t-field input::placeholder{font-size:18px;font-weight:600;letter-spacing:.1em;color:#9db3c8}
.t-field input:focus{border-color:var(--blue);box-shadow:0 0 0 4px #0a325f14}
.t-btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:51px;padding:15px 26px;border:0;border-radius:7px;background:var(--red);color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:background .18s ease,transform .18s ease}
.t-btn:hover{background:#d60000;transform:translateY(-2px)}
.t-btn:active{transform:none}
.t-btn--block{width:100%;margin-top:20px}

/* варианты ответа */
.t-options{counter-reset:opt;display:grid;gap:10px;margin-top:24px;border:0;padding:0}
.t-option{position:relative;width:100%;display:flex;align-items:center;gap:14px;text-align:left;padding:15px 18px;min-height:58px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;line-height:1.45;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.t-option:before{counter-increment:opt;content:counter(opt,upper-alpha);flex:0 0 auto;width:28px;height:28px;border-radius:8px;background:#EDF4FB;color:var(--blue);font-size:12px;font-weight:600;display:grid;place-items:center;transition:background .16s ease,color .16s ease}
.t-option:hover{border-color:var(--blue);background:#f8fbfe;transform:translateY(-1px);box-shadow:0 8px 18px #173b6010}
.t-option:hover:before{background:var(--blue);color:#fff}
.t-option:active{transform:none;box-shadow:none}
.t-option:focus-visible{outline:3px solid #0a325f33;outline-offset:2px}

/* подвал карточки */
.t-device__foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e8edf2;background:#fbfdff;padding:16px 24px}
.t-foot__actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.t-link{background:none;border:0;padding:0;color:var(--blue);font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer;transition:color .16s ease}
.t-link:hover{color:var(--red)}

/* подвал страницы */
.t-foot{background:#F1F5F8;border-top:1px solid #dce6ef;padding:26px 0;margin-top:auto}
.t-foot__in{width:min(860px,calc(100% - 40px));margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.t-foot p{font-size:11px;color:#66819b;line-height:1.8}

@media (max-width:640px){
    .t-head__in,.t-shell,.t-foot__in{width:calc(100% - 32px)}
    .t-head__in{min-height:64px}
    .t-brand__logo{height:28px}
    .t-main{padding:26px 0 44px}
    .t-intro{margin-bottom:16px;gap:10px}
    .t-device{border-radius:14px}
    .t-device__bar{padding:12px 18px}
    .t-timer{padding:4px 9px;font-size:10px}
    .t-preview{padding:10px 18px}
    .t-device__body{padding:24px 18px 26px}
    .t-h1{font-size:25px}
    .t-h1--question{font-size:20px;line-height:1.32}
    .t-lead{font-size:13px;line-height:1.65}
    .t-field input{min-height:54px;font-size:21px}
    .t-options{margin-top:20px}
    .t-option{padding:13px 14px;min-height:54px;font-size:13px;gap:11px}
    .t-option:before{width:25px;height:25px;font-size:11px}
    .t-device__foot{padding:14px 18px;flex-direction:column;align-items:flex-start;gap:8px}
}
