/* Олимпиадные курсы (/physchem): дополнения к lang.css — теория с формулами и рисунками, задания с числом и единицей,
   задачи по шагам, разобранные примеры, врезки, журнал ошибок. Палитра — как у всех тренажёров (как на claude.com):
   блоки белые с тонкой обводкой #ecebe4, внутри #f5f4ed, акценты коралловый и чёрный, статусы зелёный/красный/жёлтый. */
html[data-course="physchem"] #lesson-screen{max-width:880px}
.ph .katex{font-size:1.06em}
.ph-theory .katex,.ph-q .katex{font-size:1.05em}
.ph-eq{margin:.5em 0 .9em;overflow-x:auto;overflow-y:hidden;padding:2px 0}
.ph-eq .katex-display{margin:.3em 0}
.ph-theory .ph-eq{background:#faf9f5;border-radius:14px;padding:6px 14px}

/* условие задания */
.ph-q{font-size:18px;line-height:1.55;margin:0 0 18px}
.ph-q p{margin:0 0 .6em}.ph-q>:last-child{margin-bottom:0}
.ph-q table,.ph-sol-b table,.ph-ex-b table{border-collapse:separate;border-spacing:0;margin:.4em 0 .8em;font-size:.9em;border-radius:12px;overflow:hidden;background:#faf9f5}
.ph-q th,.ph-sol-b th,.ph-ex-b th{background:#f0eee6;color:#6e6e73;font-weight:600;text-align:left;padding:.45rem .7rem;font-size:.9em}
.ph-q td,.ph-sol-b td,.ph-ex-b td{padding:.4rem .7rem;vertical-align:top}
.ph-q ul,.ph-q ol,.ph-sol-b ul,.ph-sol-b ol,.ph-ex-b ul,.ph-ex-b ol{margin:.2em 0 .7em 1.2em;padding:0}
.ph-q ul,.ph-sol-b ul,.ph-ex-b ul{list-style:disc}.ph-q ol,.ph-sol-b ol,.ph-ex-b ol{list-style:decimal}
.ph-note{font-size:14px;color:#8f8b82;margin:0 0 10px}
.ph-opt{min-width:0;overflow-x:auto}
.dl-opt.miss{box-shadow:inset 0 0 0 2px var(--green);background:#fff}
.dl-opt.dim-soft{opacity:.55}

/* рисунки (TikZ/pgfplots → SVG) */
.ph-fig{margin:.6em auto 1em;text-align:center}
.ph-fig img{display:block;margin:0 auto;max-width:100%;height:auto}
.ph-fig figcaption{font-size:14px;color:#6e6e73;margin-top:6px;line-height:1.4}

/* врезки теории */
.ph-box{background:#f5f4ed;border-radius:16px;padding:14px 18px;margin:.4em 0 1em}
.ph-box>:last-child{margin-bottom:0}
.ph-box p{margin:0 0 .5em}
.ph-box-h{display:flex;align-items:center;gap:6px;font-size:12.5px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6e6e73;margin:0 0 6px!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif!important}
.ph-box-h .dli{font-size:18px;color:#8f8b82}
.ph-box-warn{background:#fff0ec}.ph-box-warn .ph-box-h{color:#b93a29}.ph-box-warn .ph-box-h .dli{color:#f26253}
.ph-box .ph-eq{background:transparent;padding:0}
.ph-theory h4{margin-top:1.2em}

/* число с единицей */
.ph-num{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.ph-num .dl-input{max-width:300px;flex:1 1 200px}
.ph-unit{font-size:18px;font-weight:600;color:#1d1d1f}
.ph-keys{display:flex;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap}
.ph-keys .dl-key{box-shadow:inset 0 0 0 1px #e4dfd5;background:#fff}
.ph-key-w{width:auto!important;padding:0 12px}
.ph-prev{font-size:14px;color:#6e6e73;margin-left:6px}.ph-prev.bad{color:#be123c}

/* задача по шагам */
.ph-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:st}
.ph-step{counter-increment:st;background:#f5f4ed;border-radius:18px;padding:14px 16px}
.ph-step-q{font-size:16.5px;line-height:1.5}
.ph-step-q::before{content:"Шаг " counter(st) ". ";font-weight:700}
.ph-step-q p{display:inline;margin:0}
.ph-step.cur{background:#fff;box-shadow:inset 0 0 0 1px #ecebe4}
.ph-step.cur .ph-step-q{margin-bottom:12px}
.ph-step.ok{background:var(--green-tint)}.ph-step.bad{background:var(--rose-tint)}
.ph-step-a{display:flex;align-items:flex-start;gap:6px;margin-top:6px;font-size:15.5px;font-weight:600}
.ph-step-a .dli{font-size:20px;flex:none}
.ph-step.ok .ph-step-a .dli,.ph-step.given .ph-step-a .dli{color:var(--green)}.ph-step.bad .ph-step-a .dli{color:#be123c}
.ph-step.given .ph-step-q::after{content:" готовый шаг";font-size:12px;font-weight:600;color:#8f8b82;margin-left:4px}
.ph-step-sol{font-size:15px;color:#3a3a3c;margin-top:6px;line-height:1.5}.ph-step-sol p{margin:0 0 .4em}

/* разобранный пример */
.ph-ex{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:ex}
.ph-ex-step{counter-increment:ex;background:#f5f4ed;border-radius:18px;padding:14px 18px;animation:dlIn .3s ease-out}
.ph-ex-h{font-weight:700;margin:0 0 4px!important}.ph-ex-h::before{content:counter(ex) ". "}
.ph-ex-b{font-size:16.5px;line-height:1.55}.ph-ex-b p{margin:0 0 .5em}.ph-ex-b>:last-child{margin-bottom:0}

/* порядок и соответствие */
.ph-order{list-style:none;margin:0 0 12px;padding:10px;min-height:56px;border-radius:16px;background:#f5f4ed;display:grid;gap:8px;counter-reset:o}
.ph-order li{counter-increment:o;display:flex;align-items:center;gap:8px}
.ph-order li::before{content:counter(o);width:24px;height:24px;border-radius:50%;background:#fff;color:#6e6e73;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none}
.ph-order li.ok::before{background:var(--green);color:#fff}.ph-order li.bad::before{background:#be123c;color:#fff}
.ph-bank{display:grid;gap:8px}
.ph-tile{border:0;background:#fff;box-shadow:inset 0 0 0 1px #e4dfd5;border-radius:14px;padding:10px 14px;font-size:16px;font-weight:500;color:#1d1d1f;text-align:left;line-height:1.4;width:100%}
.ph-tile:hover:not(:disabled){background:#faf9f5}
.ph-tile.used{visibility:hidden;height:0;padding:0;margin:0;box-shadow:none}
.ph-tile-in{background:#fff}
.ph-pairs .dl-pair{font-weight:500}

/* разбор ответа */
.ph-cause{display:flex;align-items:center;gap:6px;color:#b93a29!important;font-weight:600}
.ph-cause .dli{font-size:18px;color:#f26253}
.ph-your{color:#6e6e73;font-weight:500}
.ph-sol{margin-top:10px}
.ph-sol summary{cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:15px;color:#1d1d1f;list-style:none}
.ph-sol summary::-webkit-details-marker{display:none}
.ph-sol summary .dli{font-size:18px;color:#8f8b82}
.ph-sol-b{background:#fff;border-radius:14px;padding:12px 16px;margin-top:8px;font-size:15.5px;line-height:1.55;color:#1d1d1f}
.ph-sol-b p{margin:0 0 .5em}.ph-sol-b>:last-child{margin-bottom:0}
.ph-fb-step .ph-sol-b{margin-top:10px}
.dl-fb.ph-part{background:#fff7e6}.dl-fb.ph-part .dl-fb-txt>b{color:#b45309}.dl-fb.ph-part .dl-fb-ico{background:#b45309}

/* итог урока и проверки */
.ph-summary{background:#f5f4ed;border-radius:18px;padding:14px 18px;margin:14px auto;text-align:left;max-width:640px}
.ph-summary-h{display:flex;align-items:center;gap:6px;font-size:12.5px!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6e6e73;margin:0 0 6px!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif!important}
.ph-summary-h .dli{font-size:18px;color:#f26253}
.ph-summary p{margin:0}
.ph-theory .ph-summary{max-width:none;margin:.4em 0 1em;border-radius:16px}   /* «Главное» в конспекте — во всю ширину, как остальные блоки (владелец, 24.09.2026) */
@media (max-width:640px){.ph-theory .ph-summary{padding:12px 14px}}
.ph-weak{text-align:left;max-width:640px;margin:10px auto;font-size:15px}.ph-weak p{margin:0 0 4px;font-weight:600}.ph-weak ul{margin:0 0 0 1.2em;padding:0}

/* страница модуля */
.ph-chip{display:inline-flex;align-items:center;font-size:11.5px;font-weight:600;color:#6e6e73;background:#f0eee6;border-radius:999px;padding:3px 9px;letter-spacing:0;text-transform:none;white-space:nowrap}
.ph-cols{grid-template-columns:minmax(0,1fr) 260px}
@media (max-width:1024px){.ph-cols{grid-template-columns:minmax(0,1fr)}}
.ph-aside p{font-size:15px;color:#6e6e73;margin:0 0 12px}
.ph-lock-p{color:#6e6e73;font-size:15px}
.ph-lock-acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.ph-notes{padding:10px 12px}
.ph-note-l{border-radius:16px}
.ph-note-l+.ph-note-l{margin-top:4px}
.ph-note-l summary{cursor:pointer;display:flex;align-items:center;gap:12px;padding:12px;font-weight:600;font-size:16.5px;list-style:none;border-radius:14px}
.ph-note-l summary::-webkit-details-marker{display:none}
.ph-note-l summary:hover{background:#f5f4ed}
.ph-note-n{width:34px;height:34px;border-radius:50%;background:#f0eee6;color:#6e6e73;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none}
.ph-note-l[open] summary{margin-bottom:6px}
.ph-note-l>.ph-theory{padding:0 12px 18px}
.ph-note-l>.ph-theory h3{font-size:20px;margin:1.1em 0 .5em}
.ph-note-l>.ph-theory h3:first-child{margin-top:.2em}
.ph-empty{color:#6e6e73;font-size:15px;margin:0}
.ph-mist-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.ph-mist-head p{margin:0;font-weight:600}
.ph-mist ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ph-mist li{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;background:#f5f4ed;border-radius:14px;padding:10px 14px;font-size:15px}
.ph-mist-l{font-weight:700;white-space:nowrap}.ph-mist-q{flex:1 1 260px;color:#3a3a3c}
@media (max-width:640px){.ph-q{font-size:17px}.ph-num .dl-input{max-width:none}.ph-step{padding:12px 14px}.ph-box{padding:12px 14px}}
.ph-hints[hidden]{display:none}
.ph .dl-done-sub .dl-link{display:inline;background:none;box-shadow:none;border:0;padding:0;margin:0;font:inherit;color:#1d1d1f;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* шапка на узких телефонах: название курса длиннее, чем у языковых, — не заезжает под кнопку меню */
html[data-course="physchem"] .brand{min-width:0;flex:1 1 auto}
html[data-course="physchem"] .brand>div:last-child{min-width:0}
html[data-course="physchem"] .brand b{overflow:hidden;text-overflow:ellipsis}
@media (max-width:420px){html[data-course="physchem"] .brand b{font-size:21px}html[data-course="physchem"] .brand span{letter-spacing:.12em}}
@media (max-width:360px){html[data-course="physchem"] .brand b{font-size:18.5px}html[data-course="physchem"] .brand{gap:10px}}
/* логотип — стандартный логотип тренажёров (как на хабах ЕГЭ/ОГЭ): без круга и рамки, первый экран — «парящий» с тенью */
html[data-course="physchem"] .brand .mark img{border-radius:0;box-shadow:none;object-fit:contain}
html[data-course="physchem"] .brand .mark{filter:drop-shadow(0 6px 12px rgba(120,30,110,.22))}
.hero-logo-shell{position:relative;width:clamp(64px,6vw,80px);height:clamp(64px,6vw,80px);display:inline-flex;align-items:center;justify-content:center}
html[data-course="physchem"] .hero-logo{width:100%;height:100%;object-fit:contain;position:relative;z-index:2;border-radius:0;box-shadow:none;transform-origin:50% 55%;filter:drop-shadow(0 6px 12px rgba(15,23,42,.14));animation:heroLogoFloat 5.8s ease-in-out infinite}
.hero-logo-glow{position:absolute;left:50%;top:63%;width:80%;height:38%;border-radius:999px;z-index:1;filter:blur(10px);transform:translate(-50%,-50%);background:radial-gradient(ellipse at center,rgba(15,23,42,.14) 0%,rgba(15,23,42,.06) 38%,rgba(15,23,42,0) 74%);animation:heroLogoGlow 5.8s ease-in-out infinite}
@keyframes heroLogoFloat{0%,100%{transform:translateY(0) rotate(-2deg) scale(1)}25%{transform:translateY(-3px) rotate(-.4deg) scale(1.01)}50%{transform:translateY(-7px) rotate(1.8deg) scale(1.03)}75%{transform:translateY(-3px) rotate(.2deg) scale(1.01)}}
@keyframes heroLogoGlow{0%,100%{opacity:.5;transform:translate(-50%,-50%) scale(.94)}50%{opacity:.95;transform:translate(-50%,-50%) scale(1.12)}}
@media (prefers-reduced-motion:reduce){.hero-logo,.hero-logo-glow{animation:none!important}}
