:root{--navy:#142d42;--deep:#0d2132;--orange:#f26a2e;--orange-soft:#fff1e9;--ink:#172431;--muted:#6b7986;--line:#dde4e8;--paper:#fff;--canvas:#f3f5f6;--green:#2b8662;--red:#b64b3f;--shadow:0 18px 45px rgba(20,45,66,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font:14px/1.55 Arial,Helvetica,sans-serif}a{color:inherit}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:10;display:flex;width:264px;flex-direction:column;padding:24px 18px 18px;color:#fff;background:var(--deep)}
.brand{display:flex;align-items:center;gap:12px;padding:0 7px 22px;border-bottom:1px solid #ffffff17;text-decoration:none}.brand-mark{display:grid;width:39px;height:39px;place-items:center;border-radius:11px;background:var(--orange);font-size:12px;font-weight:900}.brand b,.brand small{display:block}.brand b{font-size:15px}.brand small{margin-top:2px;color:#91a4b3;font-size:9px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.nav{display:grid;gap:5px;margin-top:23px}.nav-link{display:flex;min-height:44px;align-items:center;gap:12px;padding:0 13px;border-radius:10px;color:#aebcc7;font-size:12px;font-weight:700;text-decoration:none}.nav-link span{width:20px;text-align:center;font-size:16px}.nav-link:hover,.nav-link.active{color:#fff;background:#ffffff12}.nav-link.active{box-shadow:inset 3px 0 var(--orange)}
.side-help{margin-top:auto;padding:16px;border:1px solid #ffffff16;border-radius:14px;background:#ffffff08}.side-help b{font-size:11px}.side-help p{margin:6px 0 10px;color:#91a2b0;font-size:9px;line-height:1.55}.side-help a{color:#fff;font-size:9px;font-weight:800;text-decoration:none}.profile{display:flex;align-items:center;gap:10px;margin-top:14px;padding:14px 5px 0;border-top:1px solid #ffffff14}.profile>b{font-size:10px}.profile b,.profile small{display:block}.profile b{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.profile small{margin-top:2px;color:#8295a5;font-size:8px}.profile>a{margin-left:auto;color:#91a4b2;text-decoration:none}.avatar,.mini-avatar{display:grid;place-items:center;border-radius:50%;background:#304b60;font-weight:900}.avatar{flex:0 0 34px;height:34px;font-size:9px}
.workspace{min-height:100vh;margin-left:264px}.topbar{display:flex;min-height:91px;align-items:center;justify-content:space-between;padding:18px clamp(24px,4vw,54px);border-bottom:1px solid var(--line);background:#ffffffeb}.kicker{color:#82909c;font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.kicker.light{color:#9eb1bf}.topbar h1{margin:5px 0 0;font-size:23px;letter-spacing:-.5px}.top-user{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:10px}.top-user a{padding:8px 11px;border:1px solid var(--line);border-radius:8px;color:var(--ink);font-weight:800;text-decoration:none}.content{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:34px 0 58px}
.alert{margin-bottom:18px;padding:13px 16px;border-radius:10px;font-size:12px}.alert.success{color:#276648;background:#e8f5ed}.alert.error{color:#8f382e;background:#fcecea}.hero{display:grid;min-height:330px;grid-template-columns:1fr 260px;align-items:center;overflow:hidden;padding:50px;border-radius:24px;color:#fff;background:linear-gradient(135deg,var(--navy),#0e2638);box-shadow:var(--shadow)}.hero h2{max-width:760px;margin:13px 0 14px;font-size:clamp(29px,3.6vw,46px);line-height:1.08;letter-spacing:-1.1px}.hero p{max-width:660px;margin:0;color:#b8c6d0;font-size:13px;line-height:1.7}.hero-meta{display:flex;gap:18px;margin:19px 0 24px;color:#a9b9c5;font-size:10px}.hero-stat{display:grid;width:180px;height:180px;place-items:center;align-content:center;justify-self:end;border:16px solid #ffffff16;border-radius:50%;outline:2px solid #ffffff10}.hero-stat b{font-size:35px}.hero-stat span{color:#a9bbc8;font-size:9px;text-transform:uppercase}.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.button{display:inline-flex;min-height:43px;align-items:center;justify-content:center;gap:18px;padding:0 17px;border:0;border-radius:9px;font-size:10px;font-weight:900;text-decoration:none;cursor:pointer}.button.primary{color:#fff;background:var(--orange);box-shadow:0 8px 22px #f26a2e33}.button.secondary{border:1px solid var(--line);background:#fff}.light-button{border-color:#ffffff29!important;color:#fff!important;background:#ffffff0b!important}.wide-button{width:100%}
.section-title,.page-heading,.panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.section-title{margin:38px 0 15px}.section-title h2,.panel-head h2{margin:5px 0 0;font-size:20px}.progress-label{color:var(--muted);font-size:10px}.lesson-grid{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:9px}.lesson-card{min-height:160px;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fff;text-align:left;text-decoration:none}.lesson-card.active{border-color:var(--orange);box-shadow:0 8px 26px #f26a2e15}.lesson-card.locked,.lesson-card.tomorrow{background:#f7f8f8}.lesson-top{display:flex;min-height:28px;align-items:center;justify-content:space-between}.day-number{display:grid;width:27px;height:27px;place-items:center;border-radius:8px;color:#738391;background:#edf1f3;font-size:10px;font-weight:900}.done .day-number{color:#fff;background:var(--green)}.active .day-number{color:#fff;background:var(--orange)}.lesson-top b{color:var(--green);font-size:9px}.lesson-card small{display:block;margin-top:18px;color:#99a5ae;font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.lesson-card h3{min-height:48px;margin:6px 0;font-size:11px;line-height:1.45}.lesson-card p{margin:0;color:#8b98a2;font-size:8.5px}.lesson-card.active p{color:var(--orange);font-weight:800}.lesson-grid-large{grid-template-columns:repeat(4,1fr)}.lesson-grid-large .lesson-card{min-height:190px;padding:20px}.lesson-grid-large .lesson-card h3{min-height:auto;font-size:15px}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.metric-grid.three{grid-template-columns:repeat(3,1fr)}.metric{padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}.metric>span,.metric small{display:block;color:#8996a0;font-size:9px}.metric>b{display:block;margin:6px 0 3px;font-size:25px}.panel{margin-top:18px;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff}.text-link,.back-link{color:var(--orange);font-size:10px;font-weight:900;text-decoration:none}.page-heading{padding:8px 0 24px}.page-heading h2{margin:6px 0 8px;font-size:30px;letter-spacing:-.7px}.page-heading p{max-width:680px;margin:0;color:var(--muted);font-size:12px}.score-badge{display:grid;width:88px;height:88px;place-items:center;align-content:center;border-radius:50%;color:#fff;background:var(--navy)}.score-badge b{font-size:21px}.score-badge span{font-size:8px;text-transform:uppercase}.final-card{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:24px;padding:29px;border-radius:17px;color:#fff;background:var(--navy)}.final-card h2{margin:5px 0}.final-card p{margin:0;color:#b7c5d0;font-size:11px}.locked-card{color:var(--ink);background:#e9edef}.locked-card p{color:var(--muted)}.lock-label{color:#7d8993;font-size:10px;font-weight:800}
.lesson-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;color:var(--muted);font-size:9px}.lesson-content{overflow:hidden;border-radius:22px;background:#fff;box-shadow:var(--shadow)}.lesson-content>header{padding:50px;color:#fff;background:linear-gradient(135deg,var(--navy),#1c4059)}.lesson-content>header h1{max-width:800px;margin:10px 0;font-size:39px;line-height:1.1}.lesson-content>header p{margin:0;color:#b7c7d2}.lesson-sections{padding:10px 45px 35px}.lesson-sections>section{display:grid;grid-template-columns:45px 1fr;gap:20px;padding:31px 0;border-bottom:1px solid var(--line)}.section-number{color:var(--orange);font-size:10px;font-weight:900}.lesson-sections h2{margin:0 0 10px;font-size:20px}.lesson-sections p,.lesson-sections li{color:#526371;line-height:1.75}.lesson-sections ul{padding-left:18px}.lesson-sections blockquote{margin:20px 0 0;padding:17px 20px;border-left:3px solid var(--orange);background:var(--orange-soft);font-weight:700}.lesson-sections blockquote small{display:block;margin-bottom:5px;color:#b45124;font-size:8px;text-transform:uppercase}
.quiz-card{margin-top:22px;padding:34px;border:1px solid var(--line);border-radius:18px;background:#fff}.quiz-head{margin-bottom:26px}.quiz-head h2{margin:5px 0}.quiz-head p{margin:0;color:var(--muted)}.question{margin:0 0 28px;padding:0;border:0}.question legend{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px;font-size:14px;font-weight:800}.question legend>span{display:grid;flex:0 0 27px;height:27px;place-items:center;border-radius:8px;color:#fff;background:var(--navy);font-size:9px}.question label{display:flex;align-items:center;gap:10px;margin:7px 0 7px 39px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.question label:has(input:checked){border-color:var(--orange);background:var(--orange-soft)}.question input{accent-color:var(--orange)}.final-quiz{margin-top:0}.result-hero{display:flex;align-items:center;gap:20px;padding:28px;border-radius:18px}.result-hero.passed{background:#e6f4eb}.result-hero.failed{background:#fff0eb}.result-icon{display:grid;flex:0 0 54px;height:54px;place-items:center;border-radius:50%;color:#fff;background:var(--green);font-size:24px;font-weight:900}.failed .result-icon{background:var(--orange)}.result-hero h2{margin:4px 0}.result-hero p{margin:0}.review-list{margin-top:25px}.review-list>article{display:flex;gap:14px;margin:9px 0;padding:17px;border:1px solid var(--line);border-radius:12px;background:#fff}.review-list>article>span{display:grid;flex:0 0 26px;height:26px;place-items:center;border-radius:50%;color:#fff;background:var(--green);font-weight:900}.review-list>.incorrect>span{background:var(--orange)}.review-list h3{margin:0 0 5px;font-size:12px}.review-list p{margin:0 0 4px;color:var(--muted);font-size:10px}.review-list small{color:#526371}
.create-panel{margin-bottom:18px;padding:0 22px;border:1px solid var(--line);border-radius:14px;background:#fff}.create-panel summary{padding:17px 0;color:var(--orange);font-size:11px;font-weight:900;cursor:pointer}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;padding:0 0 22px}.form-grid label,.inline-form label{display:grid;gap:6px;color:#50616f;font-size:9px;font-weight:900}.form-grid input,.form-grid select,.inline-form input{min-height:41px;padding:0 11px;border:1px solid var(--line);border-radius:8px;background:#fff}.form-grid .button{align-self:end}.inline-form{display:flex;align-items:end;gap:10px;padding:0 0 20px}.inline-form label{flex:1}.table-panel{padding:0;overflow:hidden}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{padding:15px 13px;border-bottom:1px solid var(--line);text-align:left;font-size:10px}th{color:#86939d;font-size:8px;letter-spacing:.08em;text-transform:uppercase}.person{display:flex;align-items:center;gap:9px}.mini-avatar{width:31px;height:31px;color:#fff;font-size:8px}.person b,.person small{display:block}.person small{color:var(--muted);font-size:8px}.table-progress{display:flex;align-items:center;gap:8px}.table-progress>span{width:80px;height:5px;overflow:hidden;border-radius:20px;background:#e3e8eb}.table-progress i{display:block;height:100%;background:var(--orange)}.mini-button{padding:6px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:8px;cursor:pointer}.empty-cell{padding:35px;text-align:center;color:var(--muted)}.company-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.company-card{display:flex;align-items:center;gap:12px;padding:19px;border:1px solid var(--line);border-radius:14px;background:#fff}.company-icon{display:grid;flex:0 0 42px;height:42px;place-items:center;border-radius:12px;color:#fff;background:var(--navy);font-size:10px;font-weight:900}.company-card h3{margin:0;font-size:13px}.company-card p{margin:4px 0 0;color:var(--muted);font-size:9px}.status{margin-left:auto;padding:5px 7px;border-radius:30px;color:var(--green);background:#e8f5ee;font-size:7px;font-weight:900;text-transform:uppercase}
.knowledge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.knowledge-grid article{padding:23px;border:1px solid var(--line);border-radius:15px;background:#fff}.knowledge-grid article>span{color:var(--orange);font-size:8px;font-weight:900;letter-spacing:.12em}.knowledge-grid h3{margin:13px 0 8px}.knowledge-grid p{min-height:45px;margin:0;color:var(--muted);font-size:10px}.knowledge-grid a{display:inline-block;margin-top:17px;color:var(--navy);font-size:9px;font-weight:900;text-decoration:none}.mentor-layout{display:grid;grid-template-columns:340px 1fr;gap:20px;height:calc(100vh - 160px);min-height:600px}.mentor-info,.chat-card{border:1px solid var(--line);border-radius:18px;background:#fff}.mentor-info{padding:30px}.mentor-orb{display:grid;width:48px;height:48px;place-items:center;margin-bottom:23px;border-radius:15px;color:#fff;background:var(--orange);font-size:21px}.mentor-info h2{margin:7px 0 12px;font-size:25px;line-height:1.15}.mentor-info p{color:var(--muted);font-size:11px}.prompt-list{display:grid;gap:8px;margin-top:24px}.prompt-list button{padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--navy);font-size:9px;font-weight:800;text-align:left;cursor:pointer}.prompt-list button:hover{border-color:var(--orange)}.chat-card{display:grid;min-width:0;grid-template-rows:auto 1fr auto;overflow:hidden}.chat-head{padding:17px 20px;border-bottom:1px solid var(--line)}.chat-head b,.chat-head span{display:block}.chat-head span{color:var(--green);font-size:8px}.messages{display:flex;overflow-y:auto;flex-direction:column;gap:10px;padding:20px}.message{max-width:75%;padding:12px 14px;border-radius:13px;white-space:pre-wrap;font-size:11px;line-height:1.6}.message.assistant{align-self:flex-start;background:#edf2f5}.message.user{align-self:flex-end;color:#fff;background:var(--navy)}.message.waiting{color:var(--muted)}.message-error{color:var(--red);background:#fcecea!important}.chat-form{display:flex;align-items:end;gap:10px;padding:14px;border-top:1px solid var(--line)}.chat-form textarea{flex:1;resize:none;padding:11px;border:1px solid var(--line);border-radius:10px;outline:none}.chat-form textarea:focus{border-color:var(--orange)}.chat-form button{display:grid;width:42px;height:42px;place-items:center;border:0;border-radius:10px;color:#fff;background:var(--orange);font-size:18px;cursor:pointer}.empty-state{padding:70px;text-align:center;border:1px solid var(--line);border-radius:20px;background:#fff}.empty-state p{margin-bottom:22px;color:var(--muted)}
.login-body{background:var(--deep)}.login-layout{display:grid;min-height:100vh;grid-template-columns:1.15fr .85fr}.login-intro{display:flex;flex-direction:column;justify-content:space-between;padding:48px clamp(38px,7vw,100px);color:#fff;background:radial-gradient(circle at 80% 20%,#244961,var(--deep) 48%)}.brand-large{width:max-content;border:0;padding:0}.login-intro h1{margin:15px 0;font-size:clamp(40px,5vw,67px);line-height:1.03;letter-spacing:-2px}.login-intro p{max-width:620px;color:#aebeca;font-size:14px}.login-points{display:flex;gap:24px;border-top:1px solid #ffffff1f;padding-top:22px;color:var(--orange);font-size:9px}.login-points b{display:block;margin-top:4px;color:#d9e2e8;font-size:10px}.login-panel{display:grid;place-items:center;padding:30px;background:#f4f6f7}.login-card{width:min(410px,100%);padding:35px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}.login-card h2{margin:7px 0;font-size:27px}.login-card>p{margin:0 0 24px;color:var(--muted);font-size:11px}.login-card label{display:grid;gap:6px;margin:13px 0;color:#53636f;font-size:9px;font-weight:900}.login-card input{min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:9px}.login-help{display:block;margin-top:16px;color:var(--muted);text-align:center}.profile-page{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px}.profile-summary,.password-card{padding:28px;border:1px solid var(--line);border-radius:16px;background:#fff}.profile-summary{display:flex;align-items:center;gap:18px}.profile-big-avatar{display:grid;flex:0 0 72px;height:72px;place-items:center;border-radius:50%;color:#fff;background:var(--navy);font-size:18px;font-weight:900}.profile-summary h2{margin:0}.profile-summary p{margin:3px 0;color:var(--muted)}.profile-summary div>span{font-size:10px}.password-card{display:grid;gap:12px}.password-card>h2{margin:2px 0 8px}.password-card label{display:grid;gap:6px;color:#53636f;font-size:9px;font-weight:900}.password-card input{min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:9px}.password-card .button{justify-self:start}
@media(max-width:1050px){.lesson-grid{grid-template-columns:repeat(4,1fr)}.company-grid,.knowledge-grid{grid-template-columns:repeat(2,1fr)}.metric-grid{grid-template-columns:repeat(2,1fr)}.mentor-layout{grid-template-columns:280px 1fr}.form-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.sidebar{position:static;width:auto;padding:14px}.brand{padding-bottom:13px}.nav{display:flex;overflow-x:auto;margin-top:12px}.nav-link{flex:0 0 auto}.side-help{display:none}.profile{margin-top:10px}.workspace{margin:0}.topbar{min-height:74px}.top-user span{display:none}.content{width:min(100% - 28px,1180px);padding-top:20px}.hero{grid-template-columns:1fr;padding:30px}.hero-stat{display:none}.login-layout{grid-template-columns:1fr}.login-intro{min-height:380px;padding:28px}.login-panel{padding:22px}.mentor-layout{height:auto;grid-template-columns:1fr}.chat-card{min-height:600px}.mentor-info{display:none}.profile-page{grid-template-columns:1fr}}
@media(max-width:600px){.topbar h1{font-size:18px}.lesson-grid,.lesson-grid-large,.company-grid,.knowledge-grid,.metric-grid,.metric-grid.three{grid-template-columns:1fr 1fr}.lesson-card{min-height:145px}.lesson-grid-large .lesson-card{min-height:160px;padding:15px}.hero h2{font-size:29px}.page-heading{align-items:flex-start}.score-badge{display:none}.final-card{align-items:flex-start;flex-direction:column}.lesson-content>header{padding:32px 23px}.lesson-content>header h1{font-size:29px}.lesson-sections{padding:5px 22px 25px}.lesson-sections>section{grid-template-columns:1fr;gap:7px}.quiz-card{padding:22px}.question label{margin-left:0}.form-grid{grid-template-columns:1fr}.inline-form{align-items:stretch;flex-direction:column}.mentor-layout{min-height:calc(100vh - 160px)}.message{max-width:88%}.login-points{flex-direction:column;gap:7px}.login-intro h1{font-size:36px}}

/* Версия 2.0: крупная типографика для продолжительного чтения */
body{font-size:17px;line-height:1.65}
.brand b{font-size:17px}.brand small{font-size:11px;letter-spacing:.06em}
.nav-link{min-height:50px;font-size:15px}.nav-link span{font-size:19px}
.side-help b{font-size:14px}.side-help p,.side-help a{font-size:13px}
.profile b{font-size:13px}.profile small{font-size:11px}
.kicker{font-size:11px}.topbar h1{font-size:26px}.top-user{font-size:13px}
.alert{font-size:15px}
.hero p{font-size:16px}.hero-meta{font-size:14px}.hero-stat span{font-size:11px}
.button{min-height:47px;padding:0 20px;font-size:14px}
.section-title h2,.panel-head h2{font-size:24px}.progress-label{font-size:14px}
.lesson-grid{grid-template-columns:repeat(4,minmax(180px,1fr));gap:14px}
.lesson-card{min-height:190px;padding:20px}.day-number{width:34px;height:34px;font-size:14px}
.lesson-top b{font-size:13px}.lesson-card small{margin-top:18px;font-size:11px}
.lesson-card h3{min-height:56px;font-size:16px}.lesson-card p{font-size:13px}
.lesson-grid-large .lesson-card{min-height:210px;padding:23px}.lesson-grid-large .lesson-card h3{font-size:18px}
.metric>span,.metric small{font-size:13px}.metric>b{font-size:29px}
.text-link,.back-link{font-size:14px}.page-heading h2{font-size:34px}.page-heading p{font-size:16px}
.score-badge span{font-size:11px}.final-card p,.lock-label{font-size:14px}
.lesson-header{font-size:13px}.lesson-content>header p{font-size:17px}
.section-number{font-size:14px}.lesson-sections h2{font-size:24px}
.lesson-sections p,.lesson-sections li{font-size:17px}.lesson-sections blockquote{font-size:17px}
.lesson-sections blockquote small{font-size:11px}
.quiz-head p{font-size:16px}.question legend{font-size:17px}
.question legend>span{flex-basis:32px;height:32px;font-size:13px}
.question label{padding:14px 16px;font-size:16px}
.review-list h3{font-size:16px}.review-list p{font-size:14px}.review-list small{font-size:14px}
.create-panel summary{font-size:15px}
.form-grid label,.inline-form label,.edit-user-form label,.company-edit-form label{font-size:13px}
.form-grid input,.form-grid select,.inline-form input,.edit-user-form input,.edit-user-form select,.company-edit-form input,.company-edit-form select{min-height:45px;padding:8px 11px}
th,td{font-size:13px}th{font-size:11px}.person small{font-size:11px}.mini-button{padding:8px 10px;font-size:12px}
.company-card h3{font-size:17px}.company-card p{font-size:13px}.status{font-size:10px}
.knowledge-grid article>span{font-size:11px}.knowledge-grid h3{font-size:18px}.knowledge-grid p{font-size:15px}.knowledge-grid a{font-size:13px}
.mentor-info p{font-size:15px}.prompt-list button{font-size:14px}.chat-head span{font-size:12px}
.message{font-size:16px}.login-intro p{font-size:17px}.login-points{font-size:12px}.login-points b{font-size:14px}
.login-card>p{font-size:15px}.login-card label,.password-card label{font-size:13px}.profile-summary div>span{font-size:14px}
.admin-note{margin:0 0 18px;padding:15px 18px;border:1px solid #c8dbe8;border-radius:12px;color:#294b63;background:#edf6fb;font-size:14px}
.actions-cell{min-width:170px;white-space:normal}.row-editor{position:relative}.row-editor>summary,.company-editor>summary{color:var(--orange);font-weight:800;cursor:pointer}
.row-editor[open]{min-width:520px}.edit-user-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}
.edit-user-form label,.company-edit-form label{display:grid;gap:5px}.edit-user-form .button{align-self:end}
.danger-actions{display:flex;gap:8px;margin-top:10px}.mini-button.danger{border-color:#e8b4ae;color:var(--red);background:#fff7f5}
.company-card-admin{display:block}.company-main{display:flex;align-items:center;gap:12px}.company-editor{margin-top:16px;padding-top:13px;border-top:1px solid var(--line)}
.company-edit-form{display:grid;grid-template-columns:1fr 180px auto;gap:10px;align-items:end;margin:13px 0}
.status.blocked{color:var(--red);background:#fcecea}
.standalone-update{width:min(860px,calc(100% - 32px));margin:42px auto}.standalone-update>.back-link{display:inline-block;margin-bottom:16px}
.update-card{padding:36px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.update-card h1{margin:8px 0 10px;font-size:34px}.update-card>p{color:var(--muted)}
.update-list{margin:24px 0;padding:20px;border-radius:14px;background:#f2f6f8}.update-list ul{margin-bottom:0}

@media(max-width:1050px){.lesson-grid,.lesson-grid-large{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){body{font-size:16px}.row-editor[open]{min-width:420px}.edit-user-form{grid-template-columns:1fr}.company-edit-form{grid-template-columns:1fr}}
@media(max-width:600px){.lesson-grid,.lesson-grid-large,.company-grid,.knowledge-grid,.metric-grid,.metric-grid.three{grid-template-columns:1fr}.lesson-card,.lesson-grid-large .lesson-card{min-height:0}.lesson-card h3{min-height:0}.page-heading h2{font-size:29px}.lesson-sections p,.lesson-sections li{font-size:16px}.row-editor[open]{min-width:300px}}

/* Версия 2.1: повышенная читаемость и последовательная навигация */
:root{--ink:#152a39;--muted:#344b5b;--line:#c9d4dc}
body{color:var(--ink);font-size:18px}
.page-heading p,.hero p,.hero-meta,.lesson-card p,.metric small,.final-card p,.quiz-head p,.review-list p,.review-list small,.knowledge-grid p,.mentor-info p,.login-card>p,.profile-summary p,.update-card>p{color:#2f4757}
.lesson-content>header p{color:#eef4f7;font-size:18px}
.lesson-sections{max-width:1040px;margin:0 auto;padding:18px 52px 42px}
.lesson-sections p,.lesson-sections li{color:#1f3443;font-size:18px;line-height:1.8}
.lesson-sections h2{font-size:26px;line-height:1.25}
.lesson-sections blockquote{color:#172c3a;font-size:18px;line-height:1.65}
.question legend{color:#142a39;font-size:18px;line-height:1.45}
.question label{color:#1d3342;font-size:17px;line-height:1.45}
.lesson-next-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-top:24px;padding:30px 34px;border:1px solid #c8dbe8;border-radius:18px;background:#f2f8fb}
.lesson-next-card h2{margin:6px 0 8px;font-size:25px}.lesson-next-card p{max-width:720px;margin:0;color:#294353;font-size:16px}.lesson-next-card form{flex:0 0 auto}
.lesson-next-row{display:flex;justify-content:flex-end;margin-top:20px}
.lesson-card small,.lesson-top b,.section-number,.kicker,.lock-label{color:#b94718}
th{color:#425969}.person small,.company-card p,.chat-head span{color:#344b5b}
@media(max-width:820px){body{font-size:17px}.lesson-sections p,.lesson-sections li{font-size:17px}.lesson-next-card{align-items:flex-start;flex-direction:column}.lesson-next-card form{width:100%}.lesson-next-card .button{width:100%}}
@media(max-width:600px){.lesson-sections{padding:10px 22px 30px}.lesson-sections h2{font-size:23px}.lesson-next-card{padding:24px 22px}}

/* Версия 3.1: усиленное закрепление, промышленный ассортимент и настройки ИИ */
.lesson-card.locked{color:#536675;background:#eef2f4;cursor:not-allowed}
.lesson-card.locked .day-number{color:#304959;background:#d8e1e6}
.lesson-card.locked small,.lesson-card.locked p{color:#405867}
.quiz-card,.lesson-next-card{width:100%;max-width:1040px;margin-right:auto;margin-left:auto}
.quiz-actions{display:flex;justify-content:flex-start;padding-top:6px}
.lesson-next-card{box-shadow:0 10px 30px rgba(20,45,66,.08)}
.lesson-next-compact{margin-top:22px}
.lesson-next-compact h2{margin-top:4px}
.settings-card{overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.settings-section{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:34px;padding:32px;border-bottom:1px solid var(--line)}
.settings-section h3{margin:6px 0 8px;font-size:24px}
.settings-section>div>p{margin:0;color:#263f50;font-size:15px;line-height:1.65}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.settings-grid label{display:grid;gap:7px;color:#223b4b;font-size:14px;font-weight:800}
.settings-grid .wide{grid-column:1/-1}
.settings-grid input,.settings-grid textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #aebdc7;border-radius:9px;color:#142a39;background:#fff}
.settings-grid textarea{min-height:250px;resize:vertical;line-height:1.55}
.settings-grid .check{display:flex;min-height:46px;align-items:center;grid-template-columns:none}
.settings-grid .check input{width:20px;min-height:20px}
.settings-actions{display:flex;flex-wrap:wrap;gap:12px;padding:24px 32px;background:#f4f7f8}
.settings-actions .button{min-height:50px}
@media(max-width:820px){.settings-section{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-grid .wide{grid-column:auto}.settings-actions{padding:22px}.quiz-actions .button{width:100%}}

/* Версия 3.2: отдельное согласие и политика обработки персональных данных */
.login-legal{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.login-legal a{color:#294b63;font-size:12px;font-weight:800;text-decoration:none}.login-legal a:hover{text-decoration:underline}
.consent-body,.legal-body{min-height:100vh;background:#eef3f6;color:#142a39}
.consent-layout,.legal-page{width:min(960px,calc(100% - 32px));margin:0 auto;padding:36px 0 60px}
.legal-brand{width:max-content;margin-bottom:22px;padding:0;border:0;color:#10283b;text-decoration:none}
.legal-brand small{color:#415968}.consent-card,.legal-document{padding:38px;border:1px solid #bccbd5;border-radius:22px;background:#fff;box-shadow:0 18px 55px rgba(16,40,59,.12)}
.consent-card h1,.legal-document h1{margin:8px 0 12px;font-size:36px;line-height:1.18}
.consent-lead{max-width:780px;margin:0 0 22px;color:#294353;font-size:17px;line-height:1.65}
.consent-document,.legal-text{overflow:auto;max-height:430px;padding:24px;border:1px solid #b6c5cf;border-radius:14px;background:#f7fafb;color:#172f3f;font-size:15px;line-height:1.72}
.consent-form{margin-top:22px}.consent-check{display:flex;align-items:flex-start;gap:14px;padding:18px;border:2px solid #df6a35;border-radius:13px;background:#fff5ef;color:#172f3f;font-size:17px;font-weight:800;line-height:1.5;cursor:pointer}
.consent-check input{flex:0 0 22px;width:22px;height:22px;margin-top:2px;accent-color:var(--orange)}
.consent-links{display:flex;flex-wrap:wrap;gap:9px 18px;margin:18px 0}.consent-links a{color:#214f6d;font-size:13px;font-weight:800;text-decoration:none}.consent-links a:hover{text-decoration:underline}
.consent-actions{display:flex;flex-wrap:wrap;gap:12px}.consent-actions .button{justify-content:center}
.compact-card{max-width:680px;margin:80px auto}.compact-card p{color:#294353;font-size:17px}
.legal-document>section{padding:22px 0;border-bottom:1px solid var(--line)}.legal-document h2{margin:0 0 8px;font-size:22px}.legal-document p{margin:0;color:#203b4d;font-size:16px;line-height:1.72}
.legal-laws ul{margin:0;padding-left:22px}.legal-laws li{margin:9px 0}.legal-laws a,.legal-switch a{color:#214f6d;font-weight:800}
.legal-switch{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:24px}.legal-disclaimer{margin-top:26px!important;padding:16px;border-radius:12px;background:#fff1ea;color:#6f351d!important;font-size:14px!important}
.privacy-version{padding:22px;border:1px solid #b8c8d2;border-radius:13px;background:#f5f8fa}.privacy-version b{font-size:17px}.privacy-version p{color:#294353;font-size:15px;line-height:1.65}
.legal-admin-note{margin-top:18px}.profile-consent{display:block;margin-top:10px;color:#226342;font-size:12px;font-weight:800}
.consent-status{display:block;width:max-content;padding:5px 8px;border-radius:20px;font-size:11px;font-weight:900}.consent-status.accepted{color:#226342;background:#e5f4eb}.consent-status.outdated{color:#805016;background:#fff2cf}.consent-status.missing{color:#8b3d18;background:#fff0ea}.consent-date{display:block;margin-top:4px;color:#3b5362;font-size:10px}
@media(max-width:700px){.consent-layout,.legal-page{width:min(100% - 20px,960px);padding:18px 0 36px}.consent-card,.legal-document{padding:23px}.consent-card h1,.legal-document h1{font-size:29px}.consent-document,.legal-text{max-height:390px;padding:17px;font-size:14px}.consent-check{font-size:16px}.consent-actions{flex-direction:column}.consent-actions .button{width:100%}.compact-card{margin:34px auto}}

/* Версия 3.3: обновляемые ресурсы, юридические страницы и явные действия */
.login-legal{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.login-legal a{display:flex;min-height:42px;align-items:center;justify-content:center;padding:8px 10px;border:1px solid #cbd7de;border-radius:9px;background:#f7fafb;color:#173d57;font-size:12px;line-height:1.25;text-align:center;white-space:nowrap}
.login-legal a:hover{border-color:#ee7a43;background:#fff5ef;text-decoration:none}
.consent-body,.legal-body{background:linear-gradient(145deg,#edf3f6 0%,#f8fafb 48%,#eef3f6 100%)}
.consent-layout,.legal-page{width:min(1040px,calc(100% - 40px));padding-top:28px}
.consent-card,.legal-document{padding:clamp(26px,4vw,46px);border-color:#c6d3db;box-shadow:0 22px 65px rgba(16,40,59,.11)}
.consent-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.consent-heading h1{max-width:740px}
.consent-version-badge{flex:0 0 auto;margin-top:8px;padding:8px 12px;border:1px solid #cad7df;border-radius:999px;background:#f4f7f9;color:#365164;font-size:12px;font-weight:800}
.consent-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}
.consent-summary article{display:flex;min-width:0;align-items:flex-start;gap:12px;padding:17px;border:1px solid #ced9df;border-radius:13px;background:#f8fafb}
.consent-summary article>span{display:grid;flex:0 0 31px;height:31px;place-items:center;border-radius:8px;color:#fff;background:#18384f;font-size:11px;font-weight:900}
.consent-summary b,.consent-summary small{display:block}.consent-summary b{margin-bottom:3px;color:#142f42;font-size:14px}.consent-summary small{overflow-wrap:anywhere;color:#365164;font-size:12px;line-height:1.45}
.consent-document{max-height:none;padding:0;background:#f8fafb}
.consent-document summary{position:sticky;top:0;z-index:1;padding:16px 20px;border-bottom:1px solid #c5d3dc;background:#edf3f6;color:#173d57;font-size:14px;font-weight:900;cursor:pointer}
.consent-document-text{max-height:330px;overflow:auto;padding:21px 23px;color:#1b3445;font-size:15px;line-height:1.75}
.consent-form{margin-top:20px}.consent-check{border-width:1px;border-color:#ed8a5c;box-shadow:inset 4px 0 #f26a2e}
.consent-actions{padding-top:2px}.consent-actions .button{min-height:50px}
.button.is-submitting{opacity:.72;cursor:progress}
.legal-page{max-width:1040px}.legal-document{overflow:hidden}
.legal-document h1{max-width:800px;margin-bottom:24px;font-size:clamp(31px,4vw,43px);letter-spacing:-.7px}
.legal-text{max-height:none;padding:0;border:0;background:transparent}
.legal-text p{padding:18px 0;border-bottom:1px solid #d7e0e5;color:#1b3445!important;font-size:17px!important;line-height:1.75!important}
.legal-text p:first-child{padding-top:0}.legal-text p:last-child{border-bottom:0}
.legal-pending{display:flex;align-items:flex-start;gap:15px;margin:10px 0 24px;padding:19px 21px;border:1px solid #efb296;border-radius:13px;background:#fff5ef}
.legal-pending>span{display:grid;flex:0 0 34px;height:34px;place-items:center;border-radius:50%;color:#fff;background:#cf5823;font-weight:900}
.legal-pending b{display:block;margin:1px 0 4px;color:#713315;font-size:16px}.legal-pending p{color:#713f27!important;font-size:14px!important}
.legal-switch{padding:20px;border-radius:13px;background:#f1f5f7}
.legal-switch a{display:inline-flex;min-height:38px;align-items:center;padding:0 12px;border:1px solid #c7d4dc;border-radius:8px;background:#fff;text-decoration:none}
.legal-switch a:hover{border-color:#ee7a43;background:#fff5ef}
@media(max-width:760px){
  .consent-heading{display:block}.consent-version-badge{display:inline-block;margin:0 0 10px}
  .consent-summary{grid-template-columns:1fr}.consent-document-text{max-height:360px;padding:18px}
}
@media(max-width:460px){
  .login-legal{grid-template-columns:1fr}.login-legal a{white-space:normal}
  .consent-layout,.legal-page{width:min(100% - 18px,1040px)}
}
