/* Глобальные стили виджетов (формат промптов). */
[class^="calc-"] { max-width: 100%; margin: 10px auto; }
[class^="calc-"] .calculator-container {
    max-width: 100%; margin: 10px auto; padding: 22px;
    border: 1px solid var(--line); background-color: var(--panel-3);
}
[class^="calc-"] .calculator-input { margin: 16px 0; }
[class^="calc-"] .calculator-input label {
    display: block; margin-bottom: 8px; font-weight: 600; color: var(--text); font-size: 14px;
}
[class^="calc-"] .calculator-input input,
[class^="calc-"] .calculator-input select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--panel);
    color: var(--text); font-size: 16px; font-weight: 600; box-sizing: border-box;
    font-family: "Onest", ui-monospace, Consolas, monospace;
}
[class^="calc-"] .calculator-input select { font-family: "Onest", system-ui, sans-serif; font-weight: 500; font-size: 15px; }
[class^="calc-"] .calculator-input input:focus,
[class^="calc-"] .calculator-input select:focus { border-color: var(--blue); outline: none; }
[class^="calc-"] .input-hint { font-size: 13px; color: var(--text-3); margin-top: 5px; line-height: 1.45; }

/* Переключатель (режим, ставка, тип) */
[class^="calc-"] .toggle { display: flex; gap: 0; margin-bottom: 8px; border: 1px solid var(--line); }
[class^="calc-"] .toggle button {
    flex: 1; padding: 11px 8px; border: 0; border-right: 1px solid var(--line);
    background: var(--panel); color: var(--text-2); cursor: pointer; font-size: 13.5px; font-weight: 600;
    font-family: "Onest", system-ui, sans-serif; transition: background .15s, color .15s;
}
[class^="calc-"] .toggle button:last-child { border-right: 0; }
[class^="calc-"] .toggle button.active { background: var(--blue-btn); color: #fff; }

/* Кнопка расчёта */
[class^="calc-"] .calculate-btn {
    background-color: var(--blue-btn); color: #fff; padding: 15px 20px; border: 0; cursor: pointer;
    font-size: 15.5px; font-weight: 600; width: 100%; margin-top: 18px;
    font-family: "Onest", system-ui, sans-serif;
}
[class^="calc-"] .calculate-btn:hover { background-color: var(--blue-btn-h); }

/* Блок результата */
[class^="calc-"] .result {
    margin-top: 22px; padding: 18px; background-color: var(--panel);
    border-left: 4px solid var(--blue); display: none;
}
[class^="calc-"] .result.active { display: block; animation: calcWidgetIn .3s ease; }
@keyframes calcWidgetIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
[class^="calc-"] .result h3 { margin-top: 0; color: var(--text); font-size: 17px; }

/* Главный результат */
[class^="calc-"] .dose-row-primary {
    background-color: var(--panel-2); border-left: 4px solid var(--amber); padding: 12px 16px; margin: 10px 0;
}
[class^="calc-"] .dose-row-primary strong { color: var(--text-2); font-size: 13px; font-weight: 600; }
[class^="calc-"] .dose-highlight {
    font-size: 1.45rem; font-weight: 700; color: var(--amber);
    font-family: "Onest", ui-monospace, Consolas, monospace;
}
[class^="calc-"] .dose-row-primary .dose-highlight { font-size: 1.8rem; line-height: 1.2; }
[class^="calc-"] .cat-text { font-size: 13.5px; font-weight: 600; margin-top: 4px; color: var(--amber); }

/* Дополнительные строки результата */
[class^="calc-"] .dose-row {
    background-color: var(--panel); border-left: 3px solid var(--line); padding: 10px 16px; margin: 8px 0;
    display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
[class^="calc-"] .dose-row strong { color: var(--text-2); font-weight: 500; font-size: 14px; }
[class^="calc-"] .dose-row span {
    color: var(--text); font-weight: 600; font-size: 16px; white-space: nowrap;
    font-family: "Onest", ui-monospace, Consolas, monospace;
}

/* Цветовые модификаторы: норма / умеренно / повышено / критично / снижено */
[class^="calc-"] .dose-row-primary.c-ok   { background-color: var(--ok-bg); border-color: var(--ok); }
[class^="calc-"] .dose-highlight.c-ok, [class^="calc-"] .cat-text.c-ok { color: var(--ok); }
[class^="calc-"] .dose-row-primary.c-mid  { background-color: var(--mid-bg); border-color: var(--mid); }
[class^="calc-"] .dose-highlight.c-mid, [class^="calc-"] .cat-text.c-mid { color: var(--mid); }
[class^="calc-"] .dose-row-primary.c-hi   { background-color: var(--hi-bg); border-color: var(--hi); }
[class^="calc-"] .dose-highlight.c-hi, [class^="calc-"] .cat-text.c-hi { color: var(--hi); }
[class^="calc-"] .dose-row-primary.c-crit { background-color: var(--crit-bg); border-color: var(--crit); }
[class^="calc-"] .dose-highlight.c-crit, [class^="calc-"] .cat-text.c-crit { color: var(--crit); }
[class^="calc-"] .dose-row-primary.c-low  { background-color: var(--low-bg); border-color: var(--low); }
[class^="calc-"] .dose-highlight.c-low, [class^="calc-"] .cat-text.c-low { color: var(--low); }

/* Зелёная подсказка */
[class^="calc-"] .info-note {
    background-color: var(--ok-bg); border-left: 4px solid var(--ok); padding: 12px 14px;
    margin-top: 12px; font-size: 14px; color: var(--text-2);
}
[class^="calc-"] .info-note:empty { display: none; }
/* Жёлтое предупреждение */
[class^="calc-"] .warning {
    background-color: var(--mid-bg); border-left: 4px solid var(--mid); padding: 12px 14px;
    margin-top: 14px; font-size: 13.5px; color: var(--text-2);
}
[class^="calc-"] .warning strong { color: var(--mid); }
/* Красная ошибка */
[class^="calc-"] .error-block {
    background-color: var(--crit-bg); border-left: 4px solid var(--crit); padding: 12px 14px;
    margin-top: 15px; display: none; font-size: 14px; color: var(--crit);
}
/* Параметры расчёта */
[class^="calc-"] .result-params {
    font-size: 13px; color: var(--text-3); margin-bottom: 12px; padding: 8px 0;
    font-family: "Onest", ui-monospace, Consolas, monospace;
}
[class^="calc-"] .result-params span { display: inline-block; margin-right: 16px; }
[class^="calc-"] .result-params strong { color: var(--text-2); }

/* Контентная зона */
[class^="calc-"] .content-section { max-width: 100%; margin: 0 auto; line-height: 1.65; color: var(--text-2); font-size: 16.5px; }
[class^="calc-"] .content-section h2 { color: var(--text); margin-top: 30px; font-size: 24px; }
[class^="calc-"] .content-section h3 { color: var(--text); margin-top: 26px; font-size: 18px; }
[class^="calc-"] .content-section p  { margin: 0 0 1.1em; max-width: 70ch; }
[class^="calc-"] .content-section ul { padding-left: 22px; }
[class^="calc-"] .content-section li { margin: 7px 0; }
[class^="calc-"] .content-section strong, [class^="calc-"] .content-section b { color: var(--text); }

/* Справочная таблица */
[class^="calc-"] .dose-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
[class^="calc-"] .dose-table th, [class^="calc-"] .dose-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
[class^="calc-"] .dose-table th { background-color: var(--panel-2); font-weight: 600; color: var(--text); }
[class^="calc-"] .dose-table tr:nth-child(even) td { background-color: var(--panel-3); }
/* Вопросы и ответы (FAQ) */
[class^="calc-"] .calc-faq__item { background: var(--panel); border: 1px solid var(--line-soft); margin-bottom: 8px; }
[class^="calc-"] .calc-faq__q { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text); font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
[class^="calc-"] .calc-faq__q::-webkit-details-marker { display: none; }
[class^="calc-"] .calc-faq__q::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform .2s; }
[class^="calc-"] .calc-faq__item[open] .calc-faq__q { background: var(--panel-3); border-bottom: 1px solid var(--line-soft); }
[class^="calc-"] .calc-faq__item[open] .calc-faq__q::after { transform: rotate(-135deg); }
[class^="calc-"] .calc-faq__a { padding: 14px 18px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: none; }

.ep { max-width: 100%; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.ep-hero {
    background: linear-gradient(135deg, var(--panel-3) 0%, var(--panel) 55%, var(--panel-2) 100%);
    border: 1px solid var(--line); border-left: 4px solid var(--amber);
    padding: 34px 36px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.ep-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
    border-radius: 50%; background: rgba(91,87,240,.08); pointer-events: none; }
.ep-hero::after { content: ""; position: absolute; left: 40%; bottom: -120px; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(255,182,39,.05); pointer-events: none; }
.ep-hero__badge {
    display: inline-block; background: rgba(255,182,39,.1); color: var(--amber); border: 1px solid rgba(255,182,39,.3);
    font-family: "Onest", system-ui, sans-serif; font-size: 11.5px; padding: 5px 12px; margin-bottom: 16px; position: relative;
}
.ep-hero h1 { color: var(--text); font-size: 32px; line-height: 1.2; margin: 0 0 12px; position: relative; }
.ep-hero__sub { color: var(--text-2); font-size: 16.5px; max-width: 62ch; margin: 0 0 20px; position: relative; }
.ep-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.ep-hero__pill {
    display: inline-flex; align-items: center; gap: 7px; background: var(--panel-3); border: 1px solid var(--line);
    color: var(--text-2); font-size: 13.5px; font-weight: 500; padding: 8px 14px;
}
.ep-hero__pill svg { width: 15px; height: 15px; stroke: var(--text-3); fill: none; stroke-width: 1.75; }
.ep-hero__pill--free { color: var(--ok); border-color: rgba(61,220,151,.3); background: var(--ok-bg); }
.ep-hero__pill--free svg { stroke: var(--ok); }

.ep-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ep-stat {
    flex: 1 1 150px; background: var(--panel); border: 1px solid var(--line-soft); border-top: 3px solid var(--amber);
    padding: 18px 16px; text-align: center;
}
.ep-stat__num { font-family: "Onest", system-ui, sans-serif; font-size: 1.9em; font-weight: 700; color: var(--amber); line-height: 1; }
.ep-stat__label { color: var(--text-3); font-size: 12.5px; margin-top: 6px; }

.ep-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 26px; }
.ep-card { background: var(--panel); border: 1px solid var(--line-soft); padding: 18px; transition: transform .15s, border-color .15s; }
.ep-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.ep-card__icon {
    display: grid; place-items: center; width: 46px; height: 46px;
    background: rgba(91,87,240,.1); border-left: 3px solid var(--blue); margin-bottom: 12px;
}
.ep-card__icon svg { width: 22px; height: 22px; stroke: var(--blue); fill: none; stroke-width: 1.75; }
.ep-card__label { color: var(--text-3); font-size: 12px; }
.ep-card__value { color: var(--text); font-weight: 600; font-size: 15px; margin-top: 4px; }

.ep-section { margin: 30px 0; }
.ep h2 { color: var(--text); font-size: 22px; margin: 0 0 14px; padding-bottom: 10px; position: relative; }
.ep h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--amber); margin-top: 10px; }
.ep p { margin: 0 0 1em; max-width: 70ch; }
.ep b, .ep strong { color: var(--text); }
.ep-citation {
    background: var(--panel-3); border-left: 4px solid var(--blue); padding: 16px 20px;
    color: var(--text); font-size: 16.5px; margin: 0 0 16px; max-width: none;
}
.ep ul { list-style: none; padding: 0; margin: 0 0 1em; }
.ep ul li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line-soft); }
.ep ul li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 7px; height: 7px; background: var(--amber); }

.ep-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.ep-tag { background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line-soft); font-size: 13px; padding: 5px 12px;
    font-family: "Onest", system-ui, sans-serif; }

.ep-table { width: 100%; border-collapse: collapse; margin: 4px 0 1em; }
.ep-table th { background: var(--panel-2); color: var(--text); font-weight: 600; }
.ep-table th, .ep-table td { border: 1px solid var(--line); padding: 11px 14px; font-size: 14.5px; text-align: left; }
.ep-table tr:hover td { background: var(--panel-2); }
.ep-badge-yes { display: inline-block; background: var(--ok-bg); color: var(--ok); font-size: 12.5px; font-weight: 600; padding: 3px 10px; }
.ep-badge-pay { display: inline-block; background: rgba(255,182,39,.1); color: var(--amber); font-size: 12.5px; font-weight: 600; padding: 3px 10px; }
.ep-badge-pending { display: inline-block; background: var(--panel-3); color: var(--text-3); font-size: 12.5px; font-weight: 600; padding: 3px 10px; }

.ep-orgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ep-org { background: var(--panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--blue); padding: 16px; }
.ep-org p { margin: 0; font-size: 14px; }
.ep-org b { display: block; font-size: 15px; margin-bottom: 4px; }
.ep-committee { display: flex; gap: 14px; align-items: flex-start; background: var(--panel-3); border: 1px solid var(--line-soft); padding: 16px; }
.ep-committee__icon { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255,182,39,.1); border-left: 3px solid var(--amber); }
.ep-committee__icon svg { width: 20px; height: 20px; stroke: var(--amber); fill: none; stroke-width: 1.75; }
.ep-committee__text p { margin: 0; font-size: 14.5px; }
.ep-committee__text a { color: var(--blue); }

.ep-register { background: var(--panel-3); border: 1px solid var(--line); padding: 30px; margin: 30px 0; }
.ep-register h2 { color: var(--text); }
.ep-register h2::after { background: rgba(255,182,39,.5); }
.ep-register__steps { display: grid; gap: 12px; margin: 0 0 22px; }
.ep-register__step { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.ep-register__step-num {
    flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; background: var(--blue-btn); color: #fff;
    font-family: "Onest", system-ui, sans-serif; font-weight: 700;
}
.ep-register__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ep-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; font-weight: 600; font-size: 15px; text-decoration: none; }
.ep-btn--primary { background: var(--amber); color: #15172E; }
.ep-btn--primary:hover { background: var(--blue-btn-h); color: #15172E; }
.ep-btn--outline { background: transparent; border: 1px solid var(--line); color: var(--text-2); }
.ep-btn--outline:hover { border-color: var(--blue); color: var(--text); }

.ep-faq__item { background: var(--panel); border: 1px solid var(--line-soft); margin-bottom: 8px; }
.ep-faq__q {
    cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--text); font-size: 15.5px; list-style: none;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.ep-faq__q::-webkit-details-marker { display: none; }
.ep-faq__q::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg); transition: transform .2s; }
.ep-faq__item[open] .ep-faq__q { background: var(--panel-3); border-bottom: 1px solid var(--line-soft); }
.ep-faq__item[open] .ep-faq__q::after { transform: rotate(-135deg); }
.ep-faq__a { padding: 14px 18px; margin: 0; font-size: 15px; max-width: none; }

@media (max-width: 640px) {
    .ep-hero { padding: 24px 20px; }
    .ep-hero h1 { font-size: 25px; }
    .ep-register { padding: 22px; }
    .ep-register__btns .ep-btn { flex: 1; justify-content: center; }
}
@media (max-width: 400px) {
    .ep-stat { flex-basis: 100%; }
    .ep-hero h1 { font-size: 22px; }
}

/* v26: скругления, шрифт, табличные цифры в калькуляторах */
[class^="calc-"] .calculator-container{border-radius:var(--r-m)}
[class^="calc-"] .calculator-input input,[class^="calc-"] .calculator-input select,[class^="calc-"] .calculate-btn,[class^="calc-"] .toggle,[class^="calc-"] .toggle button{border-radius:var(--r-s)}
[class^="calc-"] .calculator-input input{font-family:"Onest",system-ui,sans-serif;font-weight:600;font-variant-numeric:tabular-nums}
[class^="calc-"] .calculate-btn{font-family:"Onest",system-ui,sans-serif;font-weight:600}
[class^="calc-"] .result,[class^="calc-"] .dose-row-primary,[class^="calc-"] .info-note,[class^="calc-"] .warning,[class^="calc-"] .error-block,[class^="calc-"] table{border-radius:var(--r-s)}
[class^="calc-"] .dose-highlight{font-family:var(--display);font-weight:600;letter-spacing:-.02em}
[class^="calc-"] table{border-collapse:separate;border-spacing:0;overflow:hidden}
