@charset "UTF-8";
/* Форма заказа в два шага (com_component_magic, 2026-09-29) — по макету
   screenshot/LK/magistr-order-two-steps-v2.html. Всё под .of; !important — там,
   где мешают старые глобальные правила сайта (h1-h3, p, label, input, select, button). */

.of-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.of, .of * { box-sizing: border-box; }
.of { --of-blue: #1777e6; --of-navy: #142f61; --of-text: #203758; --of-sub: #7286a3; --of-border: #e1eaf5; --of-bg: #f5f9fe;
  max-width: 1180px; margin: 0 auto; padding: 8px 0 40px; color: var(--of-text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; text-align: left; }
.of [hidden] { display: none !important; }
.of-i { width: 20px; height: 20px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.of button { font-family: inherit; cursor: pointer; }
.of a:focus-visible, .of button:focus-visible, .of input:focus-visible, .of select:focus-visible, .of textarea:focus-visible { outline: 3px solid #89bdf8; outline-offset: 2px; }

/* верх: заголовок и этапы */
.of-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.of h1.of-title { margin: 0 !important; padding: 0 !important; font: 750 32px/1.12 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; letter-spacing: -.8px !important; color: #172135 !important; font-style: normal !important; text-align: left !important; }
.of p.of-lead { margin: 8px 0 0 !important; padding: 0 !important; font-size: 15px !important; line-height: 1.45 !important; color: var(--of-sub) !important; }
.of-progress { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; flex: none; }
.of-progress-item { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13px; font-weight: 700; color: #8a9bb1; white-space: nowrap; }
.of-progress-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e8eef6; color: #6d819b; font-size: 13px; font-weight: 800; }
.of-progress-item.is-active { color: var(--of-navy); }
.of-progress-item.is-active .of-progress-num { background: var(--of-blue); color: #fff; }
.of-progress-item.is-done .of-progress-num { background: #16a34a; color: #fff; }
.of-progress-line { width: 40px; height: 2px; margin: 0; padding: 0; background: #dbe5f1; list-style: none; }
.of-progress-line.is-done { background: #16a34a; }

/* раскладка: основная колонка + правая панель */
.of-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.of-stack { display: grid; gap: 18px; min-width: 0; }
.of-card { background: #fff; border: 1px solid var(--of-border); border-radius: 20px; box-shadow: 0 7px 28px rgba(22, 69, 125, .055); padding: 22px; min-width: 0; }
.of-sticky { position: sticky; top: 96px; }
.of-card-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.of-badge { width: 42px; height: 42px; border-radius: 12px; background: #eaf3ff; color: var(--of-blue); display: grid; place-items: center; flex: none; }
.of .of-card-head h2 { margin: 0 !important; padding: 0 !important; font: 800 18px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; color: var(--of-navy) !important; font-style: normal !important; }
.of .of-card-head p { margin: 2px 0 0 !important; padding: 0 !important; font-size: 13px !important; line-height: 1.4 !important; color: var(--of-sub) !important; }
.of h3.of-subh { margin: 0 0 12px !important; padding: 0 !important; font: 800 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; color: var(--of-navy) !important; font-style: normal !important; }
.of-divide { height: 1px; background: var(--of-border); margin: 20px 0; }

/* поля */
.of-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.of-field { position: relative; min-width: 0; }
.of-full { grid-column: 1 / -1; }
.of .of-field label { display: block !important; float: none !important; width: auto !important; margin: 0 0 7px !important; padding: 0 !important; font-size: 13px !important; font-weight: 650 !important; color: #486281 !important; text-align: left !important; }
.of-req { color: #e2574c; }
.of .of-control { display: block; width: 100% !important; min-height: 48px; height: auto; margin: 0 !important; padding: 11px 13px !important; border: 1px solid #d3e1f0 !important; border-radius: 12px !important; background: #fff !important; color: var(--of-navy) !important; font: 16px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; box-shadow: none !important; -webkit-appearance: none; appearance: none; }
.of select.of-control { padding-right: 38px !important; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23607fa4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px 18px !important; }
.of textarea.of-control { min-height: 120px; resize: vertical; }
.of .of-control:focus { border-color: var(--of-blue) !important; outline: 3px solid #d7eaff; outline-offset: 0; }
.of .is-invalid .of-control, .of .is-invalid.of-check input { border-color: #e2574c !important; }
.of-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--of-sub); }
.of-right { text-align: right; }
.of-err { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: #c62828; }
.of-err:empty { display: none; }
.of p.of-err--block, .of span.of-err--block { margin: 12px 0 0 !important; padding: 10px 12px !important; border-radius: 11px; background: #fdecec; color: #b3261e !important; font-size: 13px !important; line-height: 1.4 !important; }
.of span.of-err--block:empty { display: none; }
.of-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* подсказки предмета */
.of-suggest { position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 20; max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #d3e1f0; border-radius: 12px; box-shadow: 0 14px 34px rgba(22, 69, 125, .14); }
.of-suggest li { margin: 0; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--of-navy); cursor: pointer; }
.of-suggest li:hover, .of-suggest li.is-active { background: #eef5ff; color: #126ccc; }

/* заметки */
.of-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 13px; border-radius: 12px; background: #f0f7ff; color: #4f6784; font-size: 13px; line-height: 1.45; }
.of-note .of-i { width: 18px; height: 18px; color: #387dc5; margin-top: 1px; }
.of-note--warn { background: #fff6e8; color: #7a5410; }
.of-note--warn .of-i { color: #d9831f; }

/* файлы */
.of-drop { display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed #b9d2ee; border-radius: 14px; background: #f7fbff; color: #4f6784; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.of-drop .of-i { width: 24px; height: 24px; color: var(--of-blue); }
.of-drop b { font-size: 14px; color: var(--of-navy); }
.of-drop span { font-size: 12px; }
.of-drop:hover, .of-drop.is-drag { background: #eef6ff; border-color: var(--of-blue); }
.of-files { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.of-file { position: relative; display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px 12px; border-radius: 11px; background: #f5f8fc; font-size: 13px; overflow: hidden; }
.of-file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #243954; }
.of-file-state { flex: none; font-size: 12px; color: var(--of-sub); }
.of-file.is-done .of-file-state { color: #138a43; }
.of-file.is-error .of-file-state { color: #c62828; }
.of-file-del { flex: none; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8a98ab; }
.of-file-del:hover { background: #fde8ea; color: #c63b48; }
.of-file-del .of-i { width: 16px; height: 16px; }
.of-file-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.of-file-bar i { display: block; height: 100%; width: 0; background: var(--of-blue); transition: width .2s; }
.of-file.is-done .of-file-bar, .of-file.is-error .of-file-bar { display: none; }

/* правая панель: оценка, цена, кнопки */
.of-options { display: grid; gap: 8px; }
.of-option { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; padding: 11px 12px; border: 1px solid var(--of-border); border-radius: 13px; cursor: pointer; transition: border-color .15s, background .15s; float: none !important; width: auto !important; }
.of-option input { margin: 3px 0 0 !important; flex: none; width: 17px; height: 17px; accent-color: var(--of-blue); }
.of-option strong { display: block; font-size: 14px; color: var(--of-navy); }
.of-option small { display: block; margin-top: 2px; font-size: 12px; color: var(--of-sub); line-height: 1.35; }
.of-option:has(input:checked) { border-color: #9cc6f3; background: #f3f8ff; }
.of-link { display: inline; padding: 0; border: 0; background: none; color: #1471d6 !important; font: inherit; font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.of-options .of-link { justify-self: start; margin-top: 2px; }
.of-inline { font-size: inherit; font-weight: inherit; }
.of-price { margin-top: 16px; padding: 15px 16px; border-radius: 15px; background: #f5f9fe; border: 1px solid #e3edf8; }
.of-price-label { display: block; font-size: 12px; font-weight: 700; color: var(--of-sub); text-transform: uppercase; letter-spacing: .4px; }
.of-price-value { display: block; margin-top: 4px; font-size: 28px; font-weight: 800; color: var(--of-navy); letter-spacing: -.5px; }
.of p.of-price-hint { margin: 6px 0 0 !important; padding: 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; color: var(--of-sub) !important; }
.of-promo { display: block; margin-top: 12px; }
.of-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; margin-top: 16px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #f7ac4a, #ec8035); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 8px 18px rgba(238, 136, 57, .2); }
.of-primary:hover { filter: brightness(1.03); }
.of-primary[disabled] { opacity: .7; cursor: progress; }
.of-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1px solid #cfe0f2; border-radius: 13px; background: #fff; color: #1e5ea8; font-size: 14px; font-weight: 750; }
.of-secondary:hover { background: #f3f8ff; }
.of-secondary .of-i { width: 16px; height: 16px; }
.of p.of-fine { margin: 8px 0 0 !important; padding: 0 !important; text-align: center; font-size: 12px !important; color: var(--of-sub) !important; }
.of-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 16px; }
.of-actions .of-primary { margin-top: 0; }
.of-check { display: flex !important; gap: 10px; align-items: flex-start; margin: 16px 0 0 !important; font-size: 13.5px; line-height: 1.45; color: #34506f; cursor: pointer; float: none !important; width: auto !important; }
.of-check input { margin: 2px 0 0 !important; flex: none; width: 18px; height: 18px; accent-color: var(--of-blue); }
.of p.of-secure { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.4 !important; color: #8a98ab !important; }
.of p.of-secure .of-i { width: 15px; height: 15px; margin-top: 1px; }

/* шаг 2 */
.of-summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.of-summary { display: grid; margin: 0; }
.of-summary > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #edf2f8; }
.of-summary > div:first-child { border-top: 0; padding-top: 0; }
.of-summary dt { margin: 0; font-size: 13px; color: var(--of-sub); }
.of-summary dd { margin: 0; font-size: 14px; font-weight: 650; color: var(--of-navy); overflow-wrap: anywhere; white-space: pre-line; }
.of-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; padding: 5px; border-radius: 14px; background: #f1f5fa; }
.of-tab { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #4f6784; text-align: left; font-size: 14px; font-weight: 750; }
.of-tab small { font-size: 12px; font-weight: 500; color: var(--of-sub); }
.of-tab.is-active { background: #fff; color: var(--of-navy); box-shadow: 0 3px 10px rgba(22, 69, 125, .08); }
.of-login-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.of-me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #f3f8ff; }
.of-avatar { width: 42px; height: 42px; border-radius: 50%; background: #dfeeff; color: #1d72d4; display: grid; place-items: center; font-weight: 800; font-size: 17px; flex: none; }
.of-me b { display: block; font-size: 15px; color: var(--of-navy); }
.of-me small { display: block; font-size: 13px; color: var(--of-sub); overflow-wrap: anywhere; }

/* модальное окно */
.of-modal { position: fixed; inset: 0; z-index: 2147483002; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(14, 34, 63, .45); }
.of-modal-box { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 26px 26px 22px; border-radius: 20px; background: #fff; box-shadow: 0 22px 66px rgba(7, 27, 59, .25); }
.of-modal-close { position: sticky; top: 0; float: right; width: 38px; height: 38px; margin: -8px -8px 0 12px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 10px; background: #f1f5fa; color: #4f6784; z-index: 1; }
.of-modal-body { font-size: 14px; line-height: 1.55; color: #34506f; }
.of-modal-body h1 { margin: 0 0 12px !important; padding: 0 !important; font: 800 22px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important; color: var(--of-navy) !important; font-style: normal !important; }
.of-modal-body p { margin: 10px 0 6px !important; padding: 0 !important; font-size: 14px !important; line-height: 1.55 !important; color: #34506f !important; }
.of-modal-body ul { margin: 0 0 8px; padding-left: 20px; }
.of-modal-body li { margin: 4px 0; }
.of-modal-body a { color: #1471d6; }
.of-modal-body button[value] { min-height: 40px; margin: 12px 8px 0 0; padding: 0 16px; border: 1px solid #cfe0f2; border-radius: 11px; background: #fff; color: #1e5ea8; font-weight: 750; }
.of-modal-body button[value="1"] { border-color: transparent; background: var(--of-blue); color: #fff; }
.of-popups { display: none !important; }

/* адаптив */
@media (max-width: 980px) {
  .of-layout { grid-template-columns: 1fr; }
  .of-sticky { position: static; }
  .of-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .of { padding: 4px 0 28px; }
  .of h1.of-title { font-size: 26px !important; letter-spacing: -.4px !important; color: #0b2146 !important; }
  .of-card { padding: 16px; border-radius: 17px; }
  .of-fields { grid-template-columns: 1fr; }
  .of-progress-item { font-size: 12px; }
  .of-progress-line { width: 20px; }
  .of-summary > div { grid-template-columns: 1fr; gap: 2px; }
  .of-tabs { grid-template-columns: 1fr; }
  .of-actions { grid-template-columns: 1fr; }
  .of-actions .of-secondary { order: 2; }
  .of-modal-box { padding: 20px 16px 16px; }
}

/* старые стили сайта задают спискам отступы — внутри формы сбрасываем */
.of ol.of-progress, .of ul.of-files, .of ul.of-suggest { margin-left: 0 !important; padding-left: 0 !important; list-style: none !important; }
.of ol.of-progress > li, .of ul.of-files > li, .of ul.of-suggest > li { list-style: none !important; margin-left: 0 !important; background-image: none !important; }
.of ul.of-files { margin-top: 10px !important; }
.of ul.of-suggest { padding: 6px !important; }
.of-nowrap { white-space: nowrap; }

/* Уточнение типа работы для неоднозначных страниц услуг (30.09.2026): вопрос вместо выпадающего списка */
.of-field.is-refining > select { display: none; }
.of-refine { padding: 14px 16px; border: 1px solid #cfe0f7; border-radius: 14px; background: #f4f8fe; }
.of-refine[hidden] { display: none; }
.of-refine-title { font-size: 17px; font-weight: 800; color: #10265a; }
.of-refine .of-refine-q { margin: 6px 0 10px !important; padding: 0 !important; font-size: 14px !important; line-height: 1.4 !important; color: #3d5478 !important; }
.of-refine-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.of-refine-opt { min-height: 40px; padding: 8px 16px; border: 1.5px solid #c9d9ef; border-radius: 10px; background: #fff; color: #1d3563; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.of-refine-opt:hover { border-color: #8fb2e6; }
.of-refine-opt.is-active { border-color: #1f66ff; background: #1f66ff; color: #fff; }
.of-refine-other { display: inline-block; margin-top: 12px; font-size: 13px; }

.of-refine-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 12px; font-size: 13px; color: #5a6f90; }
.of-refine-extra[hidden] { display: none; }
.of-refine-extra-label { margin-right: 4px; font-weight: 700; }
.of-refine-extra-opt { padding: 4px 10px; border: 1px solid #d6e2f2; border-radius: 999px; background: #fff; color: #1f4f9c; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.of-refine-extra-opt:hover { border-color: #8fb2e6; }
.of-refine-extra-opt.is-active { border-color: #1f66ff; background: #1f66ff; color: #fff; }

/* «Задачи и тесты»: варианты по подписанным группам */
.of-refine-opts.is-grouped { display: grid; gap: 10px; }
.of-refine-group { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: start; }
.of-refine-group-label { padding-top: 10px; font-size: 13px; font-weight: 700; color: #5a6f90; }
.of-refine-group-opts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
    .of-refine-group { grid-template-columns: 1fr; gap: 6px; }
    .of-refine-group-label { padding-top: 0; }
}
