:root{--navy:#092951;--blue:#104782;--sky:#eaf3fc;--ink:#152943;--text:#29405a;--muted:#64778a;--line:#dbe5ef;--orange:#ed7526;--orangeDark:#c85c16;--green:#1d8a68;--light:#f5f8fc;--white:#fff}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#f4f7fb;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #f3a761;outline-offset:3px}
a{color:inherit}
.app-shell{min-height:100vh}
.site-header{height:80px;padding:0 max(26px,calc((100vw - 1360px)/2));display:flex;align-items:center;justify-content:space-between;gap:23px;background:#fff;border-bottom:1px solid var(--line);position:relative;z-index:5}
.brand{display:flex;align-items:center;text-decoration:none;gap:11px;white-space:nowrap;min-width:0;color:var(--blue)}
.brand-symbol{display:flex;width:49px;height:49px;align-items:center;justify-content:center;background:#e8f1fb;border-radius:13px;padding:7px}
.brand-symbol svg{width:100%;height:100%}
.brand-word{display:flex;flex-direction:column;line-height:1.15;gap:4px}
.brand-word strong{font-size:25px;letter-spacing:.025em}
.brand-word small{font-size:10px;letter-spacing:.11em;font-weight:800;color:#557b9f}
.topnav{display:flex;gap:23px;margin-left:auto}.topnav a{font-size:15px;font-weight:720;text-decoration:none;color:#36506e}.topnav a:hover{color:#e46a20}
.header-user{display:flex;align-items:center;gap:9px;max-width:38%;min-width:0;border-left:1px solid #dce5ef;padding-left:20px}
.avatar{display:grid;place-items:center;width:35px;height:35px;flex:none;border-radius:50%;background:#dceaf8;color:#15538d;font-weight:800}
.username{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800;max-width:255px}
.user-change{border:0;background:#f0f5fa;border-radius:8px;padding:7px 11px;font-size:12px;color:#4b6177}
.hero{max-width:1360px;margin:24px auto 0;padding:43px 46px;background:linear-gradient(115deg,#08264a 10%,#0b3b73 73%,#0c548c 110%);border-radius:24px;display:flex;align-items:center;justify-content:space-between;gap:26px;position:relative;overflow:hidden;color:#fff;min-height:295px}
.hero:after{content:"";position:absolute;right:-100px;top:-170px;width:490px;height:490px;border:1px solid #ffffff25;border-radius:50%;pointer-events:none;box-shadow:0 0 0 60px #ffffff05,0 0 0 115px #ffffff04}
.hero-left{position:relative;z-index:2;max-width:720px}
.hero-eyebrow,.eyebrow{letter-spacing:.13em;font-size:11px;font-weight:800;color:#b9d7f6}.hero-eyebrow .circle{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--orange);margin-right:6px}
.hero h1{font-size:clamp(35px,4vw,59px);line-height:1.08;margin:13px 0 14px;letter-spacing:-.035em}.hero h1 em{color:#ffb068;font-style:normal}
.hero p{font-size:16px;color:#dfebf8;max-width:680px;margin:0}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px;position:relative;z-index:2}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:12px 18px;font-size:15px;font-weight:800;line-height:1.3;text-decoration:none;transition:filter .15s,transform .15s}
.btn:hover{filter:brightness(.96)}.btn:active{transform:translateY(1px)}
.btn-orange{background:var(--orange);color:#fff}.btn-orange:hover{background:var(--orangeDark)}
.btn-ghost{background:#ffffff16;border-color:#accde54f;color:#fff}
.btn-soft{background:#e7f1fb;color:#154d86}.btn-outline{background:#fff;border-color:#cadbe9;color:#1b527f}
.btn-block{width:100%}.btn[disabled]{opacity:.5;cursor:not-allowed}
.hero-progress{width:320px;min-width:295px;max-width:100%;position:relative;z-index:2;padding:20px 21px;border:1px solid #ffffff36;background:#ffffff14;backdrop-filter:blur(5px);border-radius:18px;align-self:center}
.hero-metric{margin-top:11px;font-size:20px;font-weight:500}.hero-metric strong{font-size:43px;line-height:1.2}
.bar{height:10px;margin:11px 0;background:#ffffff45;border-radius:40px;overflow:hidden}.bar span{display:block;width:0;height:100%;border-radius:40px;background:linear-gradient(90deg,#f78d3f,#ffb36e);transition:width .2s}
.hero-progress-foot{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:12px;color:#d4e6f6}.exam-status{margin-top:12px;border-top:1px solid #ffffff3b;padding-top:10px;color:#dfecfa;font-size:13px}
.hero-illustration{position:absolute;width:250px;right:325px;bottom:-20px;opacity:.65}.hero-illustration svg{width:100%}
.main-container{max-width:1360px;margin:26px auto;padding:0 0 70px;min-height:500px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:23px}
.section-head h2{font-size:32px;letter-spacing:-.027em;margin:0 0 4px}.section-head p{margin:0;color:var(--muted);font-size:15px}.kicker{font-size:12px;font-weight:900;color:#ed7526;text-transform:uppercase;letter-spacing:.11em;margin-bottom:7px}
.modules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.module-card{background:#fff;border:1px solid #e1e8f1;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 5px 22px #1a48790a;min-width:0}
.module-banner{height:128px;position:relative;background:linear-gradient(130deg,#d7e9fa,#f4faff);overflow:hidden;padding:14px 16px;color:#1b5e98}
.module-banner:before{content:"";position:absolute;width:220px;height:220px;border-radius:50%;border:1px solid #8cb9dd82;right:-70px;top:-92px;box-shadow:0 0 0 30px #8bb9dc18,0 0 0 65px #8bb9dc0a}
.module-banner .icon{position:absolute;right:22px;top:23px;font-size:71px;font-weight:900;line-height:1;opacity:.18;letter-spacing:-.1em}
.module-banner:has(img){padding:0;background:#dbe9f9}.module-banner img{width:100%;height:100%;object-fit:cover;display:block}
.module-id{position:absolute;top:12px;left:13px;border-radius:8px;background:#fff;color:#124a80;padding:5px 10px;font-weight:900;font-size:12px;box-shadow:0 2px 8px #122e4b16;z-index:2}
.module-body{padding:22px 22px 19px;flex:1;display:flex;flex-direction:column}.module-body h3{font-size:20px;line-height:1.22;margin:0 0 9px}.module-body p{font-size:14px;color:var(--muted);margin:0 0 16px;flex:1}
.module-stats{display:flex;gap:14px;color:#446783;font-size:13px;margin-bottom:11px;flex-wrap:wrap}.module-meter{height:7px;background:#e6eef7;border-radius:5px;overflow:hidden;margin:0 0 16px}.module-meter span{height:100%;display:block;background:#2a85ba}
.module-action{border:0;background:transparent;color:#165a94;text-align:left;font-weight:800;padding:6px 0;display:flex;justify-content:space-between;align-items:center}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 4px 16px #0a4b8210}
.breadcrumb{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:13px;color:#728497;margin:0 0 16px}.breadcrumb button{background:none;border:0;padding:3px;color:#2167a3;font-size:13px;cursor:pointer}.breadcrumb strong{color:#2a4968}
.module-intro{padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;background:linear-gradient(110deg,#fff,#f0f7fe)}.module-intro h2{margin:4px 0 8px;font-size:29px}.module-intro p{margin:0;color:#66798b}.module-count{font-weight:900;font-size:26px;color:#1a568b;white-space:nowrap}
.lesson-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.lesson-row{border:1px solid #e0e8f1;background:#fff;padding:19px 18px;display:flex;align-items:center;gap:16px;min-width:0;text-align:left;border-radius:15px;cursor:pointer}.lesson-row:hover{border-color:#8ebee4}.lesson-num{background:#edf4fc;color:#1c5890;border-radius:12px;padding:8px;font-weight:900;min-width:50px;text-align:center}.lesson-row-text{flex:1;min-width:0}.lesson-row h3{font-size:17px;line-height:1.25;margin:0 0 5px}.lesson-row small{font-size:13px;color:#647a8c}.lesson-badges{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.pill{display:inline-block;font-size:11px;padding:3px 7px;border-radius:6px;background:#eaf3ff;color:#155a93;font-weight:800}.pill.green{background:#e6f7f0;color:#147253}.pill.gray{background:#f1f3f6;color:#677888}
.lesson-layout{display:grid;grid-template-columns:265px minmax(0,1fr);gap:18px;align-items:start}.sidebar{padding:15px;position:sticky;top:16px;max-height:85vh;overflow:auto}.sidebar-title{padding:8px 10px 13px;font-size:14px;font-weight:800;color:#315171}.sideitem{padding:10px;display:block;text-align:left;border:0;border-radius:10px;width:100%;background:transparent;font-size:13px;line-height:1.3;color:#425976;margin-bottom:3px}.sideitem.active{background:#e6f1fc;color:#124e82;font-weight:800}.sideitem.done:before{content:'✓ ';color:#138463;font-weight:900}
.article{min-width:0;padding:30px 36px}.article-head{border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:19px}.article-head h2{font-size:clamp(24px,2.6vw,37px);letter-spacing:-.024em;line-height:1.15;margin:6px 0 10px}.article-intro{font-size:16px;color:#4b6985;max-width:780px;line-height:1.55;margin:0}.article-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:800;font-size:12px;color:#4f7091}
.article h3{font-size:22px;margin:29px 0 10px;line-height:1.3}.article p{font-size:16px;line-height:1.7;color:#374e66;margin:0 0 12px}.article ul{padding-left:25px;color:#374e66}.article li{line-height:1.65;margin:7px 0}
.figure{background:#e9f3fb;border-radius:15px;overflow:hidden;border:1px solid #dbeaf8;margin:21px 0 7px;position:relative}.figure>button{border:0;background:transparent;cursor:zoom-in;padding:0;display:block;width:100%}.figure img{width:100%;height:auto;max-height:none;object-fit:contain;display:block;background:#f4f8fc}.figcaption{padding:11px 15px;color:#3a6485;font-size:13px;background:#f0f7ff;font-weight:700}
.figure-placeholder{padding:42px 30px;min-height:210px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;text-align:center;background:radial-gradient(circle at top right,#d5e7f8 1%,#eef5fe 57%,#f8fbff);color:#1b5890}.figure-placeholder strong{font-size:20px}.figure-placeholder p{font-size:14px;margin:0;color:#637e97;max-width:440px}.figure-placeholder svg{width:58px;height:58px;color:#78a3cb}
.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:15px 0}.info-card{padding:18px;border-radius:12px;border:1px solid #dbe7f2;background:#f5f9fd}.info-card h4{font-size:16px;margin:0 0 10px;color:#1d568a}.info-card.warn{background:#fff8f3;border-color:#f4dbc3}.info-card.warn h4{color:#ab561b}.info-card ul{margin:0}
.scenario{padding:20px 22px;background:#edf6ff;border-left:4px solid #2779ba;border-radius:10px;margin:19px 0}.scenario strong{color:#185e98}.scenario details{margin:10px 0 0}.scenario summary{cursor:pointer;font-weight:800;color:#15578f}.scenario details p{margin-top:10px}
.quiz-box{background:#f7fafc;border:1px solid #dce8f4;border-radius:15px;padding:22px;margin-top:25px}.quiz-box h3{margin-top:0}.quiz-box h4{font-size:18px;line-height:1.45;margin:0 0 12px}
.quiz-option,.exam-option{width:100%;text-align:left;display:flex;align-items:center;gap:13px;padding:12px 15px;border:1px solid #d8e3ee;background:#fff;border-radius:11px;margin:8px 0;cursor:pointer;color:#243d58;font-weight:600;line-height:1.45;font-size:15px}.quiz-option:hover,.exam-option:hover{border-color:#97bfe3}.quiz-option.correct{background:#e6f7ed;border-color:#86c9a1;color:#165c3c}.quiz-option.incorrect{background:#fff0eb;border-color:#eb9c87;color:#944029}.opt-char{flex:none;width:30px;height:30px;border-radius:8px;background:#eef5fc;color:#175992;display:grid;place-items:center;font-weight:900}.quiz-feedback{padding:12px 13px;margin-top:12px;border-radius:10px;background:#eff6fc;color:#214e74;font-weight:650}.quiz-feedback.correct{background:#e7f7ee;color:#1b6546}.quiz-feedback.incorrect{background:#fff1e9;color:#8c492c}.lesson-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:28px 0 0}
.exam-head{padding:25px 30px;margin-bottom:14px;background:linear-gradient(120deg,#fff,#f3f8fc)}.exam-head h2{font-size:32px;margin:5px 0}.exam-head p{margin:0;color:#5a748d}
.exam-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:15px 0}.exam-counter{font-weight:800;color:#285683}
.exam-question{padding:22px 26px;margin-bottom:13px}.exam-question h3{font-size:18px;margin:0 0 14px;line-height:1.35}.exam-option{font-weight:500}.exam-option input{width:18px;height:18px;accent-color:#195b97;flex:none}.exam-option:has(input:checked){background:#edf6ff;border-color:#2579bc}
.exam-result{text-align:center;padding:30px;margin-bottom:20px}.exam-result h2{font-size:28px;margin:8px 0}.exam-score{font-size:64px;font-weight:950;color:#155b8c;line-height:1.1}.exam-score.pass{color:#1b8b60}.exam-score.fail{color:#b56629}.review-item{padding:18px;border-bottom:1px solid #d9e4ef}.review-item:last-child{border-bottom:0}.review-item strong{display:block;margin-bottom:8px}.review-item p{margin:5px 0;font-size:14px;color:#496178}
.site-footer{border-top:1px solid #e0e8f2;display:flex;justify-content:space-between;gap:15px;max-width:1360px;margin:auto;padding:25px 12px;color:#627489;font-size:13px}
.loading,.error{background:#fff;padding:24px;border-radius:16px;border:1px solid #dbe6ef}.error{color:#a63727}
.login-backdrop{position:fixed;inset:0;z-index:40;background:#061e3bd9;display:grid;place-items:center;padding:17px}.login-backdrop[hidden]{display:none}.login-panel{width:min(100%,495px);background:#fff;border-radius:23px;padding:34px 35px;box-shadow:0 20px 80px #081b378c}.login-brand{font-weight:900;color:#2e6597;letter-spacing:.12em;font-size:12px}.login-panel h2{font-size:31px;line-height:1.15;margin:15px 0 12px}.login-panel p{color:#546d84;margin:0 0 24px}.login-panel label{font-weight:800;font-size:14px}.login-panel input{display:block;width:100%;padding:14px 15px;font-size:17px;border:1px solid #cbdceb;border-radius:10px;margin:9px 0}.form-error{font-size:13px;color:#b02a20;display:block;min-height:20px;margin-bottom:11px}
.image-dialog{border:0;border-radius:18px;padding:25px;max-width:min(97vw,1450px);max-height:95vh;background:#f9fcff;box-shadow:0 22px 70px #04192f95}.image-dialog::backdrop{background:#071c39db}.image-dialog img{display:block;max-width:100%;max-height:80vh;object-fit:contain}.image-dialog>a{display:inline-block;margin-top:9px;color:#195f9a;font-size:14px}.close-image{position:sticky;top:0;float:right;border:0;border-radius:12px;background:#0c3970;color:#fff;font-size:24px;width:42px;height:42px;margin:-12px -12px 4px 15px}
@media(max-width:1450px){.site-header{padding-left:28px;padding-right:28px}.hero,.main-container{margin-left:26px;margin-right:26px}}
@media(max-width:1040px){.modules-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:30px}.hero-illustration{display:none}.hero-progress{min-width:240px;width:290px}.article{padding:24px}.lesson-layout{grid-template-columns:240px 1fr}}
@media(max-width:750px){.site-header{height:auto;min-height:75px;flex-wrap:wrap;padding:11px 14px;gap:8px}.brand-symbol{height:41px;width:41px}.brand-word strong{font-size:22px}.brand-word small{font-size:9px}.topnav{order:3;width:100%;justify-content:center;gap:30px;border-top:1px solid var(--line);padding-top:9px}.header-user{max-width:52%;padding-left:7px;border:0;margin-left:auto}.user-change{padding:6px 8px}.username{max-width:145px}.hero{margin:12px 12px 0;display:block;padding:28px 23px;border-radius:19px}.hero p{font-size:14px}.hero-progress{width:100%;margin-top:24px}.hero-actions .btn{flex:1;min-width:170px}.main-container{margin:20px 12px;padding-bottom:40px}.modules-grid,.lesson-list-grid,.lesson-layout,.info-grid{grid-template-columns:1fr}.sidebar{position:static;max-height:none}.section-head h2{font-size:27px}.article{padding:22px 18px}.article-head h2{font-size:27px}.module-intro{padding:23px;display:block}.module-count{font-size:23px;margin-top:10px}.site-footer{padding:18px 12px;flex-wrap:wrap}.login-panel{padding:25px 23px}.login-panel h2{font-size:27px}}
@media(max-width:390px){.username{max-width:107px}.header-user{gap:5px}.avatar{height:29px;width:29px}.hero h1{font-size:36px}.hero-actions .btn{width:100%}.module-body{padding:16px}.lesson-row{padding:13px;gap:9px}.lesson-num{min-width:42px;padding:7px}.article p{font-size:15px}.quiz-box{padding:16px}.exam-question{padding:17px 15px}.image-dialog{padding:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Версия 3: освоение модулей, 10 вопросов, уведомления */
.modules-mastered{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:9px;margin-top:11px;padding:12px 0;border-block:1px solid #ffffff30}
.modules-mastered>span{font-size:13px;font-weight:700;color:#e0efff}
.modules-mastered strong{font-weight:900;color:#fff;font-size:19px}
.mastered-test-btn{border:1px solid #ffe7ce;background:#fff1df;color:#87420e;padding:7px 10px;font-weight:850;border-radius:8px;font-size:12px}
.notify-state{min-height:18px;font-size:12px;font-weight:750;margin-top:10px;color:#cfe6ff;max-width:650px}
.notify-error{color:#ffdfc9}.notify-success{color:#c3ffd9}
.consent-line{display:flex!important;align-items:flex-start;gap:10px;font-size:12px!important;font-weight:500!important;line-height:1.45;color:#425972;margin:8px 0 12px}
.consent-line input{width:19px!important;height:19px;flex:none;margin:0!important;accent-color:#2174b3}
.mastery-wrap{max-width:970px;margin:0 auto;padding:34px}
.mastery-top{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.mastery-top h2{font-size:clamp(25px,3vw,36px);margin:0 0 8px}.mastery-top p{margin:0;color:#556d83}
.mastery-top>.pill{font-size:16px;white-space:nowrap;padding:8px 14px}
.mastery-meter{height:9px;background:#e7eef6;border-radius:6px;margin:22px 0;overflow:hidden}.mastery-meter>span{display:block;background:var(--green);height:100%}
.exam-warning{border-radius:10px;padding:12px 15px;background:#fff5e8;border:1px solid #f5d4ad;color:#7e4b1f;font-size:13px}
.mastery-question{margin-top:28px}.mastery-question h3{font-size:25px;line-height:1.34;margin:5px 0 20px}
.mastery-choice{width:100%;padding:15px 16px;display:flex;gap:12px;align-items:center;border-radius:12px;border:1px solid #d6e5f0;background:white;margin:9px 0;text-align:left;color:#183d5b;font-weight:650;font-size:16px}
.mastery-choice:hover:not(:disabled){border-color:#6aabe2;background:#f3f9ff}
.mastery-choice.correct{background:#e5f7ed;border-color:#55b483;color:#165f42}
.mastery-choice.incorrect{background:#fff0ed;border-color:#da7766;color:#a64232}
.mastery-choice:disabled{cursor:default}
.mastery-feedback{min-height:29px;font-weight:750;font-size:14px;color:#48657f;margin:17px 0 7px}
.mastery-feedback.correct{color:#176c4d}.mastery-feedback.incorrect{color:#a13e30}
.mastery-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:18px;border-top:1px solid #e4edf5;margin-top:24px}.mastery-actions>div{font-size:13px;color:#66809b}
.notice-inline{font-size:13px;color:#62758a;max-width:730px;margin:15px auto}
@media(max-width:650px){.mastery-wrap{padding:22px 16px}.mastery-question h3{font-size:21px}.mastery-choice{font-size:15px}.mastery-actions .btn{width:100%}.modules-mastered{gap:8px}.mastered-test-btn{width:100%;margin-top:4px}}
