/* ПРОФИ ПДД · Обновлённый кабинет и тренажёр
   Собственный CSS, без внешних зависимостей; admin сохраняет старые классы. */
:root{--blue:#1749e8;--blue-dark:#1038b9;--ink:#162446;--muted:#6c7793;--line:#e5ebf5;--surface:#fff;--bg:#f4f7ff;--success:#17865f;--danger:#d95367;--radius:22px;--shadow:0 14px 45px rgba(28,57,111,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{font:16px/1.58 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);margin:0;background:radial-gradient(ellipse 63% 28% at 92% -4%,#e8edff,transparent),#f5f7fc}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(29px,3vw,43px);font-weight:810;letter-spacing:-.045em;line-height:1.12}h2{font-size:clamp(21px,2vw,27px);letter-spacing:-.035em;line-height:1.24}h3{font-size:19px;letter-spacing:-.025em}p{line-height:1.65}small,.muted{font-size:13px;color:var(--muted)}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.skip-link{position:absolute;top:-100px;left:16px;z-index:9999;padding:12px;background:white}.skip-link:focus{top:14px}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #91acff;outline-offset:3px}
/* Навигация */
.portal-header{position:sticky;top:0;z-index:50;border-bottom:1px solid rgba(227,234,248,.95);background:rgba(255,255,255,.93);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.header-inner{max-width:1240px;margin:auto;padding:14px 26px;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:10px;color:#142340;font-size:20px;font-weight:850;letter-spacing:-.05em;white-space:nowrap}.brand-mark{width:41px;height:41px;border-radius:13px;display:grid;place-items:center;background:#1749e8;color:white;box-shadow:0 6px 19px #1749e840;font-size:22px}.brand small{font-size:10px;color:#7787a6;font-weight:650;letter-spacing:.12em;display:block;line-height:1.2}.portal-header nav{display:flex;gap:5px;margin:auto;align-items:center}.portal-header nav a{padding:10px 17px;border-radius:12px;color:#60708e;font-weight:650;font-size:14px;white-space:nowrap}.portal-header nav a:hover,.portal-header nav a.active{background:#edf2ff;color:#1446dc}.header-actions{display:flex;align-items:center;gap:16px}.header-lang{display:flex;gap:3px;background:#f0f3fa;border-radius:10px;padding:4px;white-space:nowrap}.header-lang a{color:#70819a;font-size:12px;font-weight:800;padding:6px 8px;border-radius:8px}.header-lang a.current{color:#1749e8;background:white;box-shadow:0 2px 9px #19396e12}.header-exit{margin:0}.header-exit button{background:transparent;color:#6e7a93;border:1px solid #e8edf7;border-radius:11px;padding:9px 13px;font-size:13px;font-weight:680;margin:0}.header-exit button:hover{background:#edf2ff;color:#1749e8}.wrap{max-width:1210px;margin:auto;padding:40px 26px 72px;min-height:calc(100vh - 170px)}footer{padding:26px 16px 36px;text-align:center;font-size:13px;color:#8190a8}footer a{color:#6078ad}
/* Совместимость с существующими страницами (admin/auth). */
.card{background:var(--surface);padding:28px;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin:20px 0}.auth{max-width:510px;margin:45px auto}.auth h1{font-size:32px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.grid.two{grid-template-columns:repeat(2,1fr)}.grid>.card{margin:0}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}label{display:block;font-size:14px;font-weight:650;margin:13px 0}input,select,textarea{display:block;width:100%;background:white;border:1px solid #d3dceb;border-radius:12px;color:var(--ink);padding:12px 14px;margin-top:6px}textarea{min-height:120px}input[type=checkbox]{width:auto;margin:0}.inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.inline label{flex:1}.button,button:not(.answer):not(.link):not(.flag-button):not(.jump-unanswered):not(.header-exit-btn){display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;border:1px solid transparent;background:var(--blue);color:white;padding:12px 20px;font-size:14px;font-weight:750;text-align:center;transition:transform .25s,box-shadow .25s,background .25s;margin:6px 0;min-height:45px}.button:hover,button:not(.answer):not(.link):not(.flag-button):not(.jump-unanswered):not(.header-exit-btn):hover{background:var(--blue-dark);color:white;box-shadow:0 8px 25px #1749e827;transform:translateY(-2px)}.button:disabled,button:disabled{box-shadow:none!important;transform:none!important;opacity:.46}.button.secondary,button.secondary{background:#edf2ff;color:var(--blue)}.link{background:transparent;border:0;padding:0;color:var(--blue)}.row{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:13px 0}.row span{overflow-wrap:anywhere}.stat{font-size:38px;color:var(--blue);font-weight:800}.notice{padding:15px 19px;background:#edf3ff;color:#315ba5;border-radius:13px}.notice.error{background:#fff0ef;color:#b52e46}.tabs,.numbers{display:flex;gap:10px;flex-wrap:wrap}.tabs a,.numbers a{padding:8px 14px;background:white;border:1px solid var(--line);border-radius:10px}.selected{outline:2px solid var(--blue)}.answered{background:#edf2ff!important}.scheme{width:100%;max-height:450px;object-fit:contain}.explanation{margin-top:20px}.search{display:flex;gap:12px}.search input{flex:1}summary{cursor:pointer;font-weight:730}details>form{margin-top:15px}video,.video{width:100%;aspect-ratio:16/9;border:0;background:#111}
/* Общие элементы обновлённых страниц */
.eyebrow{font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase;color:#436fdb;display:inline-flex;align-items:center;gap:9px;margin-bottom:13px}.eyebrow.light{color:#b7ceff}.live-dot{width:7px;height:7px;border-radius:50%;background:#83f6c3;box-shadow:0 0 0 5px #ffffff14;display:inline-block}.section-head{display:flex;align-items:start;justify-content:space-between;gap:20px}.section-head h2{margin-bottom:8px}.section-lead{font-size:13px;line-height:1.6;color:var(--muted);margin:0}.button.button-small{font-size:12px;padding:9px 13px;min-height:36px;border-radius:10px}.button.button-mini{font-size:12px;padding:7px 11px;min-height:33px}.button.button-white{color:#1749e8;background:white;border-color:white;box-shadow:0 12px 26px #001f592b}.button.button-white:hover{background:#f0f5ff;color:#1443d8}.button.button-ghost{border-color:#a9c1ff70;background:#ffffff15;color:#fff}.button.button-ghost:hover{background:#ffffff2a;color:#fff}.button.button-outline{background:white;color:#264cba;border-color:#dce6fb}.button.button-outline:hover{background:#eff4ff;color:#1749e8}.back-link{display:inline-flex;gap:8px;align-items:center;font-size:13px;font-weight:700;color:#5d6e8d}.back-link:hover{color:#1749e8}
/* Кабинет · hero */
.dashboard-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:287px;background:linear-gradient(115deg,#071d4f 0%,#153baf 58%,#2864ff 100%);border-radius:27px;padding:39px 44px;box-shadow:0 23px 55px #1d45af25}.dashboard-hero:after{content:"";position:absolute;z-index:-1;width:370px;height:370px;right:-110px;top:-145px;border-radius:50%;background:radial-gradient(circle,#ffffff28,transparent 69%)}.dashboard-hero__copy{position:relative;z-index:2;max-width:650px}.dashboard-hero h1{color:white;font-size:clamp(32px,3.55vw,49px);margin:3px 0 15px}.dashboard-hero h1 span{color:#b6cbff}.dashboard-hero p{color:#c9d6f6;font-size:15px;max-width:550px;margin-bottom:22px}.hero-cta{display:flex;gap:12px;flex-wrap:wrap}.dashboard-hero__decor{position:absolute;right:4%;top:50%;width:280px;height:280px;transform:translateY(-50%);display:grid;place-items:center;opacity:.9}.decor-orbit{border:1px solid #ffffff35;border-radius:50%;position:absolute;inset:12px}.orbit-two{inset:42px;border-color:#ffffff22}.decor-center{display:grid;place-items:center;width:130px;height:130px;border-radius:36px;background:linear-gradient(145deg,#ffffff2c,#ffffff0b);border:1px solid #ffffff4e;transform:rotate(-10deg);color:#fff;font-size:41px;letter-spacing:-.09em;font-weight:900;box-shadow:0 25px 50px #0014453d;backdrop-filter:blur(14px)}.decor-center span{position:absolute;right:-16px;bottom:-11px;font-size:23px;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;background:#69dab3;color:#064a46;transform:rotate(10deg);letter-spacing:0}.metrics-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 25px}.metric-card{background:white;border:1px solid var(--line);border-radius:21px;padding:23px 26px;box-shadow:var(--shadow)}.metric-top{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:670;color:#8390a8}.metric-symbol{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:#6d53cb;background:#f1edff;font-size:21px;font-weight:900}.metric-symbol--blue{color:#276ae5;background:#eaf1ff}.metric-symbol--amber{color:#bf7b0c;background:#fff4df}.metric-value{font-weight:900;line-height:1.1;font-size:38px;letter-spacing:-.07em;margin:17px 0 4px}.metric-label{font-size:12px;color:#8793a7}.practice-card{margin:0 0 22px;padding:30px 31px 24px;scroll-margin-top:90px}.category-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.category-picker label{margin:0;font-size:12px;color:#7583a0}.category-picker select{width:83px;margin:0;font-size:14px;font-weight:770;border-radius:10px;padding:9px}.resume-strip{display:flex;align-items:center;gap:14px;background:#edf3ff;border:1px solid #dbe7ff;border-radius:17px;padding:14px 16px;margin-top:20px}.resume-strip__icon{border-radius:11px;background:white;color:#1749e8;width:42px;height:42px;display:grid;place-items:center;font-size:24px}.resume-strip div:nth-child(2){flex:1}.resume-strip strong{font-size:13px}.resume-strip p{font-size:12px;color:#7081a7;margin:3px 0 0}.access-warning{display:flex;gap:14px;border-radius:14px;margin-top:18px;padding:16px;background:#fff7e9;border:1px solid #ffead0;color:#92571b}.access-warning strong{font-size:13px}.access-warning p{margin:3px 0 0;font-size:12px}.modes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:23px}.mode-card{display:flex;flex-direction:column;min-width:0;border:1px solid #e4eaf5;border-radius:18px;padding:22px 19px;background:#fff;transition:transform .3s,box-shadow .3s,border-color .3s}.mode-card:hover{transform:translateY(-5px);box-shadow:0 18px 30px #173c8920;border-color:#cbd8ff}.mode-icon{height:49px;width:49px;display:grid;place-items:center;font-size:24px;border-radius:14px;background:#eaf0ff;color:#3158d1;margin-bottom:16px}.mode-card--exam .mode-icon{background:#ebf6fe;color:#1685be}.mode-card--errors .mode-icon{background:#fff3e6;color:#d78c23}.mode-info{min-height:118px}.mode-info h3{font-size:17px;line-height:1.3;margin-bottom:9px}.mode-info p{font-size:12px;color:#7b87a1;line-height:1.65;margin-bottom:10px}.mode-select-label{margin:0 0 7px;font-size:12px;color:#65738f}.mode-card select{margin:0 0 12px;font-size:12px;padding:11px 10px;max-width:100%}.mode-footnote{font-size:12px;color:#8791a4;min-height:51px;display:flex;align-items:center;line-height:1.4;margin-bottom:12px}.button.mode-action,button.mode-action{margin-top:auto!important;width:100%;justify-content:space-between!important;padding:12px 14px!important;font-size:12px!important}.practice-foot{border-top:1px solid #edf1f8;margin-top:20px;padding-top:17px;font-size:12px;color:#7e8aa0}.practice-foot b{color:#33476d}.small-mark{color:#23bd8c;font-size:9px;margin-right:8px}
/* Персонализированная аналитика */
.insights-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.insight-card{margin:0;padding:28px;min-height:280px}.small-head{align-items:center}.small-head .eyebrow{margin-bottom:9px}.small-head h2{font-size:22px;margin-bottom:0}.section-icon{display:grid;place-items:center;height:37px;width:37px;border-radius:12px;background:#ecf2ff;font-size:22px;color:#4771dd}.text-link{font-size:12px;font-weight:760;white-space:nowrap}.topic-list{margin-top:18px}.topic-item{margin-bottom:19px}.topic-item:last-child{margin-bottom:0}.topic-item__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:9px}.topic-item__head strong{font-weight:690}.topic-item__head span{white-space:nowrap;color:#8c99ad}.mini-track{background:#eff2f9;width:100%;height:6px;border-radius:20px;overflow:hidden}.mini-track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#5980f1,#6bb5ff)}.topic-link{margin:5px 0 0}.topic-link button{padding:0!important;background:transparent!important;border:0!important;min-height:auto!important;font-size:11px!important;font-weight:750!important;color:#4166ca!important;box-shadow:none!important;transform:none!important;margin:0!important}.topic-link button:hover{text-decoration:underline!important;color:#1540c5!important}.empty-soft{padding:22px 6px;color:#8390a4;text-align:center}.empty-soft>span{font-size:33px;color:#96afff}.empty-soft p{font-size:13px;max-width:340px;margin:6px auto}.recent-list{margin-top:14px}.recent-item{display:flex;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #edf1f8}.recent-item:last-child{border-bottom:0}.recent-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:12px;background:#ebf8f2;color:#149264;font-weight:800}.recent-meta{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.recent-meta strong{font-size:12px;color:#273858}.recent-meta small{font-size:11px;color:#9aa4b5}.recent-result{font-size:14px;font-weight:810;color:#214ddd;white-space:nowrap}.recent-result span{color:#98abc6;margin-left:7px}.access-card{padding:26px 29px;margin:22px 0 0}.access-list{display:grid;gap:10px;margin-top:20px}.access-entry{display:flex;gap:13px;align-items:center;background:#f8faff;border:1px solid #ebeff9;padding:12px 14px;border-radius:14px}.access-category{flex-shrink:0;display:grid;place-items:center;background:#e8efff;color:#1b4de0;width:39px;height:39px;border-radius:11px;font-weight:860}.access-details{flex:1;display:flex;flex-direction:column;gap:3px}.access-details strong{font-size:13px}.access-details small{font-size:11px}.access-status{font-size:11px;border-radius:60px;padding:5px 9px;white-space:nowrap;background:#fff2f0;color:#c0575b;font-weight:750}.access-status.is-active{background:#e8f8f0;color:#118052}.plans-inline{display:flex;gap:13px;flex-wrap:wrap;margin-top:18px}.plan-inline{flex:1 1 260px;display:flex;align-items:center;gap:20px;justify-content:space-between;background:#f8faff;padding:12px 15px;border:1px solid var(--line);border-radius:14px}.plan-inline div{display:flex;flex-direction:column;gap:4px}.plan-inline strong{font-size:12px}.plan-inline span{font-size:15px;font-weight:840}.tiny-note{margin:15px 0 0;font-size:11px;color:#8997aa}
/* Экзамен */
.attempt-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.attempt-category{background:#eaf0ff;color:#255bd4;border:1px solid #dce6ff;border-radius:99px;padding:6px 13px;font-size:12px;font-weight:760}.attempt-top{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:22px}.attempt-top h1{margin-bottom:12px}.timer-pill{background:#fff;border:1px solid #dce5f9;padding:12px 20px;border-radius:16px;box-shadow:var(--shadow);display:flex;align-items:center;gap:9px;font-size:22px;font-weight:880;font-variant-numeric:tabular-nums;white-space:nowrap}.timer-pill>span:first-child{font-size:23px;color:#436ce4}.timer-pill.is-urgent{background:#fff3ee;border-color:#ffc8b8;color:#bf432a}.attempt-progress{margin:0 0 23px;padding:19px 24px}.attempt-progress__head{display:flex;justify-content:space-between;font-size:13px;font-weight:690;margin-bottom:12px}.attempt-progress__head strong{font-size:14px;color:#1749e8}.attempt-progress__head strong span{color:#a4aec0}.progress-track{background:#edf1fa;border-radius:18px;height:9px;overflow:hidden}.progress-track span{display:block;height:100%;background:linear-gradient(90deg,#1749e8,#60a6ff);border-radius:18px;transition:width .45s}.attempt-progress__legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px;color:#7f8ba3;font-size:11px}.attempt-progress__legend>span{display:inline-flex;gap:6px;align-items:center}.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.legend-dot.done{background:#3c7eeb}.legend-dot.pending{background:#c9d1df}.legend-dot.flagged{background:#e3a638}.attempt-layout{display:grid;grid-template-columns:minmax(0,1.78fr) minmax(270px,.82fr);gap:24px;align-items:start}.question-column{min-width:0}.question-card{padding:29px 33px;margin:0}.question-card__meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:12px}.question-counter{font-size:12px;font-weight:790;color:#4674e8;letter-spacing:.04em;text-transform:uppercase}.question-counter span{color:#9ca8bb;font-weight:600}.flag-button{display:inline-flex;gap:7px;align-items:center;border-radius:11px;border:1px solid #e3e9f5;background:#fff;color:#6e7a92;padding:8px 12px;font-size:12px;font-weight:710;margin:0;transition:all .24s}.flag-button:hover{border-color:#c8d5ee;background:#f5f8ff}.flag-button span:first-child{font-size:20px;line-height:1}.flag-button[aria-pressed="true"]{border-color:#ffd997;background:#fff7e7;color:#945d13}.flag-button[aria-pressed="true"] span:first-child{color:#e3a129}.question-card h2{font-size:clamp(19px,2.2vw,25px);margin:0 0 24px;line-height:1.42;letter-spacing:-.025em;overflow-wrap:anywhere}.scheme-frame{padding:14px;background:#f5f8ff;border:1px solid #ebf0fa;border-radius:15px;margin:0 0 24px}.scheme{max-height:370px;display:block;margin:auto}.options-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px;font-weight:720;font-size:13px}.options-head small{font-size:11px;text-align:right}.answer-options{display:grid;gap:10px}.answer-form{margin:0}.answer{display:flex;align-items:center;text-align:left;gap:14px;padding:13px 16px;width:100%;min-height:64px;border:1px solid #e2e9f4;border-radius:14px;background:white;color:#1d2e4f;cursor:pointer;transition:background .25s,border-color .25s,box-shadow .25s,transform .25s;margin:0;font-size:14px;line-height:1.46}.answer:not(:disabled):hover{background:#f4f7ff;border-color:#98b2f7;box-shadow:0 6px 18px #2a5ec012;transform:translateX(3px)}.answer-letter{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f1f4fb;color:#49618c;font-weight:850;flex-shrink:0;transition:background .25s}.answer-content{flex:1;overflow-wrap:anywhere}.answer-check{font-size:20px;font-weight:820}.answer.picked{background:#eff4ff;border-color:#7f9df5;box-shadow:inset 0 0 0 1px #a3b9ff}.answer.picked .answer-letter{background:#1b4ce6;color:#fff}.answer.correct{background:#ecfaf3;border-color:#8fdabb;box-shadow:none}.answer.correct .answer-letter{background:#1c9164;color:#fff}.answer.incorrect{background:#fff0f1;border-color:#f2b8c0}.answer.incorrect .answer-letter{background:#d94c64;color:#fff}.answer:disabled{cursor:default;opacity:1!important;transform:none!important}.answer.correct .answer-check{color:#188f60}.answer.incorrect .answer-check{color:#cb475d}.explanation{background:#f1f7ff;border:1px solid #dfeaff;border-radius:14px;padding:18px 19px;margin-top:19px}.explanation-title{display:flex;gap:10px;align-items:center;font-size:13px;color:#224eb4}.explanation-title span{font-size:23px}.explanation p{color:#45617e;font-size:13px;line-height:1.7;margin:10px 0 0}.explanation a{font-size:12px;font-weight:730;display:inline-block;margin-top:9px}.answer-saved{font-size:13px;border-radius:12px;padding:12px 14px;background:#edf8f2;color:#258058;margin:15px 0 0}.question-actions{margin-top:23px;border-top:1px solid #eef1f8;padding-top:16px}.question-actions__move{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.question-actions__move .button:last-child{margin-left:auto}.question-sidebar{position:sticky;top:105px}.question-navigator{margin:0;padding:24px 22px}.navigator-head{display:flex;align-items:center;gap:10px;justify-content:space-between}.navigator-head h2{font-size:19px;margin:0}.navigator-count{background:#edf2ff;color:#3763de;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:820}.question-navigator .section-lead{margin:10px 0 17px}.question-map{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.question-map__number{height:38px;border-radius:9px;border:1px solid #e6eaf4;background:#f6f8fc;color:#6e7b98;display:grid;place-items:center;font-size:12px;font-weight:780;transition:transform .2s,background .2s,border-color .2s}.question-map__number:hover{background:#eaf0ff;color:#1644d1;border-color:#9cb3fb;transform:translateY(-2px)}.question-map__number.is-answered{background:#e8efff;color:#2a5ae2;border-color:#c9d8ff}.question-map__number.is-current{background:#1749e8;color:white;border-color:#1749e8;box-shadow:0 4px 12px #1749e82e}.question-map__number.is-flagged{box-shadow:inset 0 -4px 0 #efb44d}.question-map__number.is-current.is-flagged{box-shadow:inset 0 -4px 0 #ffce7d,0 4px 12px #1749e82e}.jump-unanswered{display:flex;align-items:center;justify-content:space-between;margin:18px 0 0;padding:10px 0;border:0;border-top:1px solid #edf1f8;background:transparent;color:#2c59d1;font-size:12px;font-weight:780;width:100%;text-align:left}.jump-unanswered:disabled{opacity:.48;cursor:default}.sidebar-tip{display:flex;gap:10px;margin-top:7px;background:#f5f8ff;border-radius:12px;padding:13px}.sidebar-tip>span{font-size:17px;color:#426ad6}.sidebar-tip p{margin:0;font-size:11px;line-height:1.55;color:#7888a5}.bookmark-note{color:#98a2b3;font-size:10px;line-height:1.45;margin:12px 0}.finish-form{margin:17px 0 0}.button.button-finish{width:100%;background:#1b305c;justify-content:space-between;padding:13px 15px}.button.button-finish:hover{background:#102248}.report-card{padding:19px 22px;margin:16px 0 0}.report-card summary{font-size:12px;color:#72819c;display:flex;justify-content:space-between;align-items:center}.report-card form{margin-top:18px}.report-card textarea{font-size:13px}.result-hero{display:flex;gap:30px;align-items:center;padding:29px 34px;margin-bottom:21px;border-radius:23px;color:white;background:linear-gradient(115deg,#153168,#2153ca 100%);box-shadow:0 14px 35px #1749e828}.result-hero h2{color:white;margin:4px 0 8px}.result-hero p{color:#d8e4ff;font-size:13px;margin-bottom:11px;max-width:530px}.result-badge{flex-shrink:0;width:145px;height:145px;border-radius:50%;background:conic-gradient(#83e5bf var(--ring-progress),#ffffff28 0);display:grid;place-items:center;position:relative}.result-badge:before{content:"";position:absolute;inset:12px;background:#19418e;border-radius:50%}.result-badge div{position:relative;display:flex;align-items:center;flex-direction:column}.result-badge strong{font-size:32px;line-height:1.2;letter-spacing:-.05em}.result-badge span{font-size:15px;color:#cae2ff}
/* История */
.history-heading{margin-bottom:24px}.history-heading .back-link{display:flex;margin-bottom:25px}.history-heading h1{margin-bottom:8px}.history-list{margin:0;padding:25px 28px}.history-list__title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.history-list__title h2{font-size:20px;margin:0}.history-list__title>span{font-size:12px;color:#9da8bc}.history-row{display:flex;align-items:center;gap:16px;border-bottom:1px solid #ecf0f7;padding:16px 4px;color:var(--ink)}.history-row:last-child{border:0}.history-row:hover{background:#f8faff}.history-row__icon{width:44px;height:44px;display:grid;place-items:center;background:#eef4ff;color:#3463d4;border-radius:14px;font-size:19px;font-weight:830}.history-row__text{flex:1;display:flex;flex-direction:column;gap:4px;min-width:0}.history-row__text strong{font-size:14px}.history-row__text strong span{font-weight:550;color:#7c89a0}.history-row__text small{font-size:11px}.history-row__result{font-size:16px;font-weight:840;text-align:right}.history-row__result small{display:block}.history-row__arrow{font-size:18px;color:#a2b1cf}
/* Движения: только после запуска JS и при поддержке IntersectionObserver. */
@media(prefers-reduced-motion:no-preference){html.portal-motion .motion-item{opacity:0;transform:translate3d(0,24px,0);transition:transform .7s cubic-bezier(.18,.8,.18,1),opacity .7s ease;transition-delay:var(--stagger,0ms)}html.portal-motion .motion-item.in-view{opacity:1;transform:translate3d(0,0,0)}.decor-center{animation:gentle-float 7s ease-in-out infinite}@keyframes gentle-float{0%,100%{translate:0 0}50%{translate:0 -9px}}}
@media(max-width:1080px){.dashboard-hero__decor{right:-55px;opacity:.42}.dashboard-hero__copy{max-width:660px}.question-map{grid-template-columns:repeat(5,minmax(0,1fr))}.header-inner{gap:15px}.portal-header nav a{padding:9px 10px}.modes-grid{gap:10px}.mode-card{padding:20px 15px}}
@media(max-width:850px){.wrap{padding:28px 19px 55px}.header-inner{flex-wrap:wrap;padding:12px 19px}.portal-header nav{order:3;flex-basis:100%;justify-content:center;gap:10px}.portal-header nav a{font-size:12px}.header-actions{margin-left:auto}.dashboard-hero{min-height:270px;padding:34px}.dashboard-hero__decor{width:230px;height:230px;right:-40px;opacity:.3}.modes-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mode-info{min-height:95px}.insights-grid{grid-template-columns:1fr;gap:15px}.attempt-layout{grid-template-columns:minmax(0,1fr)}.question-sidebar{position:static}.question-map{grid-template-columns:repeat(8,minmax(0,1fr))}.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.wrap{padding:21px 12px 45px}.brand{font-size:16px}.brand-mark{height:35px;width:35px;border-radius:10px}.brand small{font-size:9px}.header-inner{padding:11px 12px;gap:9px}.header-lang{padding:2px}.header-lang a{font-size:11px;padding:5px}.header-exit button{font-size:11px;padding:6px 9px}.header-actions{gap:7px}.portal-header nav{order:3;gap:0;overflow:auto;justify-content:space-evenly}.portal-header nav a{padding:9px 10px}.dashboard-hero{border-radius:19px;min-height:260px;padding:29px 22px}.dashboard-hero h1{font-size:32px}.dashboard-hero p{font-size:13px}.dashboard-hero__decor{right:-100px;opacity:.13}.hero-cta .button{font-size:12px;padding:10px 12px;min-height:40px}.metrics-grid{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:16px 15px;border-radius:16px}.metric-card:last-child{grid-column:1/-1}.metric-value{font-size:31px}.metric-top{font-size:11px}.metric-label{font-size:11px}.metric-symbol{height:27px;width:27px;font-size:17px}.practice-card{padding:23px 16px}.section-head{flex-wrap:wrap}.practice-card .section-head{align-items:center}.category-picker{margin-left:auto}.modes-grid{grid-template-columns:1fr;gap:10px}.mode-card{padding:17px;display:grid;grid-template-columns:45px 1fr;column-gap:14px}.mode-icon{grid-column:1;grid-row:1;align-self:start;margin:0;width:44px;height:44px}.mode-info{grid-column:2;grid-row:1;min-height:auto}.mode-info h3{font-size:16px}.mode-info p{font-size:12px}.mode-select-label,.mode-card select,.mode-footnote,.mode-card .mode-action{grid-column:1/-1}.mode-select-label{margin-top:7px}.mode-footnote{min-height:auto;margin:8px 0}.resume-strip{flex-wrap:wrap}.resume-strip .button{margin-left:55px}.access-card,.insight-card{padding:21px 17px}.small-head h2{font-size:20px}.access-entry{flex-wrap:wrap}.access-status{margin-left:auto}.question-card{padding:22px 16px}.question-card h2{font-size:20px}.answer{padding:11px 12px;font-size:13px;min-height:56px;gap:10px}.answer-letter{width:31px;height:31px}.question-actions__move .button{font-size:12px;padding:10px 11px}.attempt-top{align-items:start}.timer-pill{padding:9px 11px;font-size:16px}.attempt-progress{padding:17px 16px}.attempt-progress__legend{gap:9px}.question-navigator{padding:23px 18px}.question-map{grid-template-columns:repeat(6,minmax(0,1fr))}.result-hero{padding:23px 17px;gap:15px}.result-badge{width:95px;height:95px}.result-badge:before{inset:9px}.result-badge strong{font-size:22px}.result-badge span{font-size:12px}.result-hero h2{font-size:21px}.result-hero p{font-size:12px}.history-list{padding:19px 16px}.history-row{gap:10px}.history-row__icon{width:36px;height:36px}.history-row__text strong{font-size:12px}.history-row__result{font-size:14px}.grid,.grid.two,.formgrid{grid-template-columns:1fr}.card{padding:19px}.auth{margin:20px auto}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition-duration:0.01ms!important;scroll-behavior:auto!important;transform:none!important}}

/* Exam status map — right answer green, wrong answer red. */
.legend-dot.correct{background:#188557}
.legend-dot.incorrect{background:#c33647}
.question-map__number.is-correct,
.question-map__number.is-correct:hover,
.question-map__number.is-correct.is-current{background:#147d52;border-color:#147d52;color:#fff}
.question-map__number.is-incorrect,
.question-map__number.is-incorrect:hover,
.question-map__number.is-incorrect.is-current{background:#b9263d;border-color:#b9263d;color:#fff}
.question-map__number.is-current.is-correct,
.question-map__number.is-current.is-incorrect{outline:3px solid #26395f;outline-offset:2px;box-shadow:none}
.question-map__number.is-current.is-flagged.is-correct,
.question-map__number.is-current.is-flagged.is-incorrect{box-shadow:inset 0 -4px 0 #ffce7d}
.exam-limit-alert{padding:15px 18px;margin:0 0 18px;border-radius:14px;background:#fff1f1;color:#92263a;border:1px solid #f2b6bd;font-weight:720;line-height:1.55}

/* Служба поддержки PDD.PROFI — WhatsApp */
.header-whatsapp{display:inline-flex;align-items:center;gap:7px;border:1px solid #b9e8d1;background:#ecfaf3;color:#087b4e;font-size:12px;font-weight:800;white-space:nowrap;padding:6px 9px;border-radius:11px}
.header-whatsapp:hover{background:#d9f5e7;color:#07633f}
.header-whatsapp__mark{display:grid;place-items:center;width:26px;height:26px;background:#159e66;color:white;border-radius:50%;font-size:10px;font-weight:900;letter-spacing:-.03em}
.whatsapp-support-card{display:flex;align-items:center;gap:18px;padding:22px 27px;margin:22px 0 0;border-color:#d8eee3;background:linear-gradient(100deg,#f1fbf6,#fff)}
.whatsapp-support-card__symbol{width:49px;height:49px;flex-shrink:0;border-radius:15px;display:grid;place-items:center;background:#169d67;color:white;font-weight:850}
.whatsapp-support-card__copy{flex:1;min-width:0}.whatsapp-support-card__copy h2{font-size:19px;margin:0 0 5px}.whatsapp-support-card__copy p{font-size:12px;color:#607a72;margin:0 0 4px}.whatsapp-support-card__copy small{font-size:11px;color:#547465}
.button.whatsapp-support-card__action,.button.question-whatsapp-support__action{background:#168d60;color:#fff;white-space:nowrap;border-color:#168d60}
.button.whatsapp-support-card__action:hover,.button.question-whatsapp-support__action:hover{background:#0c774e;color:#fff;box-shadow:0 8px 20px #13875a30}
.question-whatsapp-support{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:17px 20px;margin-top:15px;border:1px solid #dcefe5;background:#f2fbf5;border-radius:16px}
.question-whatsapp-support strong{font-size:13px;color:#12583d}.question-whatsapp-support p{color:#637c70;font-size:11px;line-height:1.5;margin:3px 0 0}.question-whatsapp-support__action{flex-shrink:0}
@media(max-width:1080px){.header-inner{gap:10px}.header-whatsapp__text{display:none}.header-whatsapp{padding:5px}}
@media(max-width:600px){.whatsapp-support-card{padding:18px;align-items:flex-start;gap:12px;flex-wrap:wrap}.whatsapp-support-card__copy{flex:1 1 calc(100% - 68px)}.whatsapp-support-card__action{width:100%}.question-whatsapp-support{flex-direction:column;align-items:stretch}.question-whatsapp-support__action{width:100%}.header-whatsapp__mark{width:25px;height:25px}}
