:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;color:#1d3043;background:#f3f6f9;font-size:16px}*{box-sizing:border-box}body{margin:0;min-height:100vh}.shell{max-width:760px;margin:auto;padding:20px 16px 30px}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.brand{font-weight:800;letter-spacing:.02em}.mark{display:inline-grid;place-items:center;background:#193e64;color:#fff;border-radius:9px;width:32px;height:32px;margin-right:6px}.muted,.trust{color:#8191a2;font-weight:500}.trust{font-size:.8rem}.panel{background:white;border:1px solid #e4eaf0;border-radius:23px;padding:clamp(22px,5vw,40px);box-shadow:0 12px 44px #17344b0a}.eyebrow{font-weight:700;color:#3465a1;text-transform:uppercase;letter-spacing:.12em;font-size:.75rem}.headline{font-size:clamp(1.8rem,5.5vw,2.9rem);line-height:1.15;letter-spacing:-.035em;margin:14px 0}.intro{font-size:1.05rem;line-height:1.7;color:#516679}p{line-height:1.65}.lang-grid,.role-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:26px 0}.role-grid{grid-template-columns:1fr}.tile{width:100%;background:#f7f9fc;border:1.5px solid #e4eaf0;border-radius:14px;padding:18px;text-align:left;color:#22384d;font:inherit;cursor:pointer}.tile:hover,.tile:focus-visible{border-color:#3176ac;background:#f0f7fc}.tile strong{display:block;margin-bottom:5px;font-size:1.04rem}.tile small{color:#61758a}.btn{border:0;background:#1767a0;color:white;border-radius:12px;padding:14px 23px;font:inherit;font-weight:700;cursor:pointer;min-height:46px}.btn:hover{background:#12537f}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.secondary{background:#edf3f8;color:#285572}.actions{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-top:28px;flex-wrap:wrap}.checkline{display:flex;gap:12px;line-height:1.55;align-items:start;padding:15px;background:#f4f8fc;border-radius:12px;margin-top:20px}.checkline input{margin-top:6px;transform:scale(1.25)}.notice{background:#fff8e6;border:1px solid #f3dfaf;border-radius:12px;padding:13px;margin-top:15px;font-size:.87rem;line-height:1.55}.progressbar{height:7px;background:#e6eef5;border-radius:10px;overflow:hidden;margin:15px 0 24px}.progressbar div{height:100%;background:#1d7ea7;transition:width .3s}.progresslabel{font-size:.83rem;color:#587084;display:flex;justify-content:space-between}.question{font-size:clamp(1.25rem,3.8vw,1.65rem);font-weight:750;line-height:1.38;margin:12px 0 23px}.options{display:grid;gap:9px}.opt{display:flex;gap:12px;align-items:center;border:1.5px solid #e1e9f0;border-radius:12px;padding:14px;cursor:pointer;background:#fff}.opt:has(input:checked){border-color:#2379b0;background:#eef7fd}.opt input{accent-color:#1674aa;width:18px;height:18px;flex-shrink:0}.field{width:100%;border:1.5px solid #d5e0e8;border-radius:12px;padding:13px;font:inherit;background:#fff;color:#20384e;min-height:49px}.field:focus{outline:3px solid #cfe9fb;border-color:#1674aa}.compound{display:grid;gap:13px}.compound label{font-size:.9rem;font-weight:600;display:grid;gap:6px}.hint{font-size:.83rem;color:#60758b;margin-top:10px}.save{color:#728597;font-size:.78rem}.complete{text-align:center;padding:26px 0}.complete .glyph{font-size:3rem}.error{color:#a1322d;font-weight:600}.resume{border:1px solid #b7d1e6;background:#eff7fd;padding:16px;border-radius:12px;margin-top:18px}.role-head{margin-top:9px;color:#698099}.preview{max-height:130px;overflow:auto;white-space:pre-wrap;background:#f5f8fa;border-radius:9px;padding:12px;font-size:.85rem}footer{text-align:center;color:#8392a1;font-size:.8rem;margin-top:24px}@media(max-width:420px){.top{margin-bottom:20px}.lang-grid{grid-template-columns:1fr}.panel{border-radius:17px;padding:22px 18px}.actions .btn{flex:1}.shell{padding:12px 10px 25px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.qset{border:0;margin:0;padding:0;min-width:0}.qset>legend{padding:0}.qnote{font-size:.85rem;color:#3465a1;font-weight:600;margin:4px 0 0}progress.bar{display:block;width:100%;height:7px;margin:15px 0 24px;border:0;border-radius:10px;overflow:hidden;background:#e6eef5;appearance:none}progress.bar::-webkit-progress-bar{background:#e6eef5}progress.bar::-webkit-progress-value{background:#1d7ea7}progress.bar::-moz-progress-bar{background:#1d7ea7}.gloss{background:#f7f9fc;border:1px solid #e4eaf0;border-radius:12px;padding:12px 15px;margin-top:18px;font-size:.92rem;line-height:1.55}.gloss summary{cursor:pointer;font-weight:700;color:#285572}.gloss dl{margin:10px 0 0}.gloss dt{font-weight:700;margin-top:8px}.gloss dd{margin:2px 0 0}.sample{overflow-x:auto;background:#fff;border:1px dashed #b7c7d6;border-radius:10px;padding:10px;font-size:.85rem}.sample table,.atable{border-collapse:collapse;width:100%}.sample th,.sample td,.atable th,.atable td{border-bottom:1px solid #e4eaf0;padding:6px 8px;text-align:left;vertical-align:top}.sample p{margin:8px 0 0}.topics{display:grid;gap:10px}.topic{border:1.5px solid #e1e9f0;border-radius:12px;padding:10px 12px;margin:0}.topic legend{font-weight:650;padding:0 4px}.seg{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.seg label{display:flex;align-items:center;gap:6px;border:1.5px solid #e1e9f0;border-radius:10px;padding:8px 11px;cursor:pointer;font-size:.92rem}.seg label:has(input:checked){border-color:#2379b0;background:#eef7fd}.seg input{accent-color:#1674aa}.compound-label{font-size:.9rem;font-weight:600;display:grid;gap:6px;margin-top:12px}#course{margin-top:8px}#course optgroup{font-weight:700}h2{font-size:1.2rem;margin-top:30px}.atable{font-size:.9rem;margin:18px 0}@media(max-width:420px){.seg label{flex:1 1 auto}}
.sample table{font-size:.8rem}.sample th,.sample td{padding:5px 6px}.sample th:first-child,.sample td:first-child,.sample th:last-child,.sample td:last-child{width:1%;white-space:nowrap}
.headline{font-size:clamp(1.45rem,4.6vw,2.15rem);margin:6px 0 12px}.question{font-size:clamp(1.1rem,3.3vw,1.38rem);margin:10px 0 18px}.intro{font-size:1rem}.ask{font-size:1.15rem;font-weight:750;margin:26px 0 0;color:#1d3043}.ask+.role-grid{margin-top:12px}.tile strong{font-size:1rem}

/* === Visual refresh 2026: presentation only; questionnaire and application logic unchanged === */
:root{color-scheme:light;--ink:#173047;--sub:#526a7d;--line:#dce7ed;--brand:#176d78;--brand-deep:#115660;--aqua:#e6f5f3;--canvas:#f5f8f8;font-family:Inter,'Segoe UI',system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--canvas);font-size:16px;font-synthesis:none;-webkit-font-smoothing:antialiased}
body{background:radial-gradient(ellipse 850px 410px at 15% -150px,#e0f5f0 0%,transparent 82%),radial-gradient(ellipse 700px 430px at 100% 3%,#eaf2fa 0%,transparent 75%),var(--canvas);color:var(--ink)}
.shell{max-width:795px;padding:clamp(16px,3vw,36px) clamp(12px,3vw,24px) 36px}
.top{margin-bottom:clamp(20px,4vw,36px);gap:14px;min-height:42px}
.brand{display:flex;align-items:center;font-size:1.07rem;letter-spacing:-.025em;color:#1b3d46;font-weight:800}
.mark{width:40px;height:40px;border-radius:13px;margin-right:10px;background:linear-gradient(140deg,#16858a,#13536c);box-shadow:0 5px 12px #176d7830;font-size:1.4rem}
.muted{margin-left:4px;color:#647e86;font-weight:600}.trust{color:#53777a;font-size:.8rem;white-space:nowrap}
.panel{background:#fff;border:1px solid #e3ecee;border-radius:26px;padding:clamp(22px,5.5vw,45px);box-shadow:0 18px 60px #244a5510,0 2px 8px #244a5508}
.eyebrow{color:#13737c;font-size:.72rem;letter-spacing:.14em;font-weight:800}
.headline{font-size:clamp(1.9rem,5.3vw,2.8rem);letter-spacing:-.045em;line-height:1.16;color:#153846;margin:14px 0 16px;font-weight:800;text-wrap:balance}
.intro{color:#476375;line-height:1.75;font-size:1.03rem;max-width:62ch}.role-head,.hint{color:#5b7482}.ask{color:#163b48;font-size:1.16rem;margin-top:26px}
.lang-grid,.role-grid{gap:13px;margin:25px 0}
.lang-grid>.btn{background:#f7fbfb;color:#174e58;border:1.5px solid #d6e6e9;border-radius:15px;min-height:77px;font-size:1.15rem;box-shadow:0 2px 3px #244a5506}
.lang-grid>.btn:hover,.lang-grid>.btn:focus-visible{background:#e8f6f3;color:#12545b;border-color:#3d9298;transform:translateY(-1px)}
.tile{position:relative;background:#f9fcfc;color:#153d4b;border:1.5px solid #e0e9ec;border-radius:17px;padding:21px 48px 21px 21px;box-shadow:0 3px 8px #284e5605;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}
.tile::after{content:'›';position:absolute;right:18px;top:50%;transform:translateY(-50%);font-size:1.8rem;color:#57939a;line-height:1}
.tile strong{color:#1a414d;font-size:1.06rem}.tile small{font-size:.88rem;line-height:1.55;color:#627986}
.tile:hover,.tile:focus-visible{background:#eff9f7;border-color:#3e9696;box-shadow:0 5px 18px #206e7810;transform:translateY(-1px)}
.btn{background:linear-gradient(135deg,#177c83,#176575);border-radius:13px;min-height:49px;padding:13px 22px;box-shadow:0 5px 14px #176d781f;transition:background .18s,transform .18s,box-shadow .18s}
.btn:hover{background:#145965;box-shadow:0 7px 18px #176d7828;transform:translateY(-1px)}
.btn.secondary{background:#eef5f5;color:#215761;box-shadow:none}.btn.secondary:hover{background:#dfefed}
.btn:focus-visible,.tile:focus-visible,.opt:focus-within,.seg label:focus-within,.checkline:focus-within{outline:3px solid #70c6be;outline-offset:3px}
.actions{margin-top:30px;gap:12px}
.checkline{border:1px solid #d9e9e8;background:#f3f9f8;border-radius:15px;padding:17px;gap:14px}.checkline input{accent-color:#197e82}
.notice{background:#fefaf0;border:1px solid #f0e4c9;color:#745b33;border-radius:14px;padding:16px;font-size:.88rem}
.progresslabel{color:#557583;font-weight:650;font-size:.84rem}.progresslabel span:last-child{font-variant-numeric:tabular-nums;color:#14737d}
progress.bar,.progressbar{height:9px;border-radius:99px;background:#e7f0f0;margin:15px 0 32px}
progress.bar::-webkit-progress-bar{background:#e7f0f0;border-radius:99px}progress.bar::-webkit-progress-value{background:linear-gradient(90deg,#1a9390,#197a96);border-radius:99px}progress.bar::-moz-progress-bar{background:#188a90;border-radius:99px}
.qset{min-inline-size:0}.question{font-size:clamp(1.25rem,3.8vw,1.62rem);color:#183744;line-height:1.45;font-weight:760;letter-spacing:-.02em;margin:10px 0 24px;text-wrap:pretty}
.qnote{background:#eef8f6;border-left:3px solid #329694;color:#246f76;padding:9px 12px;margin-bottom:16px;border-radius:0 8px 8px 0}
.options{gap:11px}.opt{min-height:57px;border:1.5px solid #e0e9ec;border-radius:14px;padding:15px 16px;gap:14px;background:#fff;line-height:1.45;transition:border-color .15s,background .15s,box-shadow .15s}
.opt:hover{background:#f8fcfc;border-color:#a0c8c9}.opt:has(input:checked){border-color:#27858c;background:#eaf7f5;box-shadow:inset 0 0 0 .5px #27858c}.opt input{accent-color:#147b80;width:19px;height:19px}.opt:has(input:checked) span{color:#15535c;font-weight:600}
.field{border-color:#cddfe2;border-radius:13px;min-height:52px;padding:13px 15px;color:#163945;max-width:100%;background:#fcfefe}.field:focus{outline:3px solid #c7ece7;border-color:#288d8d;background:#fff}textarea.field{line-height:1.6;resize:vertical}
.compound{gap:17px}.compound-label,.compound label{line-height:1.5;color:#335263;font-size:.92rem}
.gloss{background:#f5f9fa;border-color:#dde8eb;border-radius:15px;padding:16px 18px;line-height:1.65}.gloss summary{color:#255e69}.gloss[open] summary{margin-bottom:12px}.gloss dd{color:#4e6976}
.sample{border-color:#c9dce0;border-radius:12px;background:#fff}.sample th,.atable th{background:#eef6f6;color:#2e5c68}.sample td,.sample th,.atable td,.atable th{padding:9px 10px;border-color:#e0e9ec}
.resume{background:#edf9f6;border:1px solid #b5dfd8;border-radius:16px;padding:18px;color:#215d5c}.save{color:#668387;text-align:right;margin-top:17px}.complete{padding:32px 6px}.complete .glyph{font-size:3.5rem}
.topic{background:#fcfefe;border-color:#dce8eb;border-radius:14px;padding:13px 15px}.topic legend{color:#254e5b;line-height:1.5}.topics{gap:14px}.seg{gap:9px}.seg label{border-color:#d7e5e8;border-radius:11px;padding:10px 13px;min-height:43px;background:#fff}.seg label:has(input:checked){border-color:#27858c;background:#e8f7f4}.seg input{accent-color:#187980}
#course{border-color:#d0e2e5}footer{margin-top:27px;color:#748c97;line-height:1.6;font-size:.8rem}
@media(max-width:600px){.shell{padding:14px 12px 25px}.panel{border-radius:20px;padding:25px 19px}.trust{font-size:.72rem}.top{margin-bottom:21px}.brand{font-size:.97rem}.mark{width:35px;height:35px;border-radius:10px}.intro{font-size:.99rem;line-height:1.7}.headline{font-size:clamp(1.65rem,6.7vw,2.2rem)}.question{font-size:clamp(1.19rem,4.9vw,1.46rem)}.opt{padding:14px;min-height:58px}.actions{gap:9px}.actions>.btn{flex:1;min-width:0;padding:13px 12px}.tile{padding:18px 43px 18px 17px}.lang-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.lang-grid>.btn{min-height:70px;padding:12px 7px;font-size:1.05rem}.seg label{flex:1 1 auto}}
@media(max-width:365px){.trust{display:none}.panel{padding:22px 15px}.seg{gap:6px}.seg label{font-size:.87rem}.question{font-size:1.17rem}}
@media(prefers-reduced-motion:reduce){.btn,.tile,.opt{transition:none!important}.btn:hover,.tile:hover{transform:none}}

/* Role question appears below the introductory title and description. */
.role-chooser{margin-top:28px;padding-top:18px;border-top:1px solid #e4eaf0}
.role-chooser .ask{margin:0 0 12px;font-size:1.16rem;line-height:1.4}
.role-chooser .role-grid{margin:0 0 20px}
@media(max-width:600px){.role-chooser{margin-top:22px;padding-top:16px}}

/* Bilingual language-selection welcome; scoped to first screen only. */
.language-welcome{text-align:center}
.language-welcome .welcome-title{font-size:clamp(1.12rem,3.4vw,1.5rem);line-height:1.24;letter-spacing:-.02em;margin:0 0 10px;color:#153846;font-weight:750;text-wrap:balance}
.language-welcome .welcome-description{font-size:clamp(.86rem,2.2vw,.99rem);line-height:1.5;margin:0 auto;color:#476375;max-width:57ch}
.language-welcome .welcome-divider{width:52px;height:2px;border-radius:3px;background:#9ccfcc;margin:16px auto}
.language-welcome .language-prompt{font-weight:700;color:#315c68;margin:20px 0 8px;font-size:.9rem}
.language-welcome .lang-grid{margin:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.language-welcome .lang-grid>.btn{min-height:44px;padding:10px 8px;font-size:.95rem}
@media(max-width:600px){
  .shell:has(.language-welcome){padding:7px 10px 10px}
  .shell:has(.language-welcome) .top{margin-bottom:8px;min-height:32px}
  .shell:has(.language-welcome) .panel{padding:14px 12px;border-radius:16px}
  .shell:has(.language-welcome) footer{margin-top:8px;font-size:.7rem}
  .language-welcome .welcome-title{font-size:clamp(1rem,4.5vw,1.2rem);margin-bottom:6px;line-height:1.19}
  .language-welcome .welcome-description{font-size:.78rem;line-height:1.36}
  .language-welcome .welcome-divider{margin:10px auto}
  .language-welcome .language-prompt{margin:12px 0 7px;font-size:.8rem}
  .language-welcome .lang-grid>.btn{min-height:44px;font-size:.86rem}
}
@media(max-width:380px), (max-height:650px) and (max-width:600px){
  .language-welcome .welcome-title{font-size:.98rem}
  .language-welcome .welcome-description{font-size:.74rem;line-height:1.3}
  .language-welcome .welcome-divider{margin:7px auto}
  .language-welcome .language-prompt{margin:9px 0 6px}
}

/* Краткий открываемый словарь перед опросом */
.gloss summary{display:list-item;cursor:pointer;line-height:1.45}
.gloss:not([open]){padding:11px 15px}
.gloss:not([open]) summary{margin:0}
@media(max-width:600px){.role-chooser{margin-top:14px;padding-top:12px}.role-chooser .ask{margin-bottom:8px}.role-chooser .role-grid{gap:8px}.role-chooser .tile{padding:12px 34px 12px 13px}.gloss{font-size:.88rem}}

.tablewrap{overflow-x:auto;max-height:70vh;border:1px solid #e0e9ec;border-radius:12px}.rtable{margin:0;font-size:.8rem}.rtable td{white-space:nowrap}.rtable th{min-width:90px;max-width:170px;white-space:normal;vertical-align:bottom;line-height:1.3}.rtable th:first-child{min-width:0}.rtable td{max-width:320px;overflow:hidden;text-overflow:ellipsis}.rtable thead th{position:sticky;top:0;z-index:1}
