/* ===== Страница доклада на конференции (konferentsiya.html, собирает tools/make-konferentsiya.mjs) =====
   Вид на телефоне — в css/mobile.css (раздел «Доклад на конференции»). */

/* Двуязычие: у каждого текста пара lang="ru" / lang="en", видна одна — класс lang-en на <html> ставит js/konferentsiya.js.
   Без скрипта виден русский. */
html:not(.lang-en) .konf [lang="en"],
html.lang-en .konf [lang="ru"] { display: none !important; }

.konf { padding: 34px 0 20px; }
.konf h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 0; }
.konf section { margin-bottom: 72px; }
.konf .sources--page { margin-bottom: 0; }
.konf-lead { color: var(--muted); max-width: 780px; margin: -4px 0 26px; }
.konf-small { font-size: .85rem; color: var(--muted); }
.konf sup { font-size: .68em; color: var(--gold); font-weight: 700; }

/* ---------- Первый экран ---------- */
.konf-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: center; }
.konf-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: .3em; }
.konf-hero__report { font-size: 1.12rem; line-height: 1.55; color: var(--text); margin: 0 0 16px; max-width: 640px; }
.konf-hero__conf { margin: 0 0 6px; font-weight: 700; }
.konf-hero__conf a { color: var(--gold-light); text-decoration-color: rgba(232, 207, 149, .4); text-underline-offset: 3px; }
.konf-hero__authors { margin: 0 0 18px; font-size: .92rem; color: var(--muted); }
.konf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.konf-lang { display: inline-flex; padding: 3px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 29, 22, .55); }
.konf-lang button {
  min-width: 52px; padding: 7px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 800 .82rem/1 var(--sans); letter-spacing: .08em; color: var(--muted);
}
.konf-lang button[aria-pressed="true"] { background: var(--gold); color: #0a261d; }

.konf-status { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--gold-light); background: rgba(201, 164, 92, .07); }
.konf-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(201, 164, 92, .6); animation: konf-pulse 2.2s infinite; }
@keyframes konf-pulse { 70% { box-shadow: 0 0 0 9px rgba(201, 164, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0); } }

/* Постер в золотой рамке, чуть повёрнут — как приколотый к стенду */
.konf-hero__poster { display: block; justify-self: center; width: min(100%, 380px); text-decoration: none; color: var(--muted); text-align: center; font-size: .85rem; }
.konf-hero__poster img { width: 100%; border-radius: 6px; border: 1px solid var(--gold); box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 8px rgba(201, 164, 92, .08); transform: rotate(2deg); transition: transform .35s ease; margin-bottom: 14px; background: #fff; }
.konf-hero__poster:hover img { transform: rotate(0) scale(1.02); }

/* ---------- Цифры ---------- */
.konf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.konf-stat { padding: 24px 24px 20px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(27, 86, 64, .35), rgba(7, 29, 22, .5)); }
.konf-stat b { display: block; font: 800 3.4rem/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; color: var(--gold-light); margin-bottom: 10px; }
.konf-stat p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---------- Введение ---------- */
.konf-intro__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.konf-fact { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7, 29, 22, .45); }
.konf-fact svg { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 12px; }
.konf-fact p { margin: 0; font-size: .97rem; line-height: 1.6; }
.konf-note { margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--gold); color: var(--muted); font-size: .95rem; }
.konf-aim { margin-top: 26px; padding: 24px 28px; border-radius: 18px; border: 1px solid var(--gold); background: radial-gradient(ellipse at 0 0, rgba(201, 164, 92, .14), transparent 60%), rgba(7, 29, 22, .5); }
.konf-aim b { display: block; font: 800 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.konf-aim p { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--text); }

/* ---------- Состав ---------- */
.konf-src { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 8px; }
.konf-src figure { margin: 0; text-align: center; }
.konf-src img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); margin-bottom: 10px; }
.konf-src figcaption { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.konf-src figcaption b { display: block; color: var(--text); font-size: .95rem; }
.konf-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.konf-table th { text-align: left; padding: 12px 16px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); }
.konf-table td { padding: 11px 16px; border-bottom: 1px solid rgba(201, 164, 92, .12); transition: background .2s, opacity .2s; }
.konf-table td:first-child { font-weight: 700; border-left: 3px solid var(--c); }
.konf-table td:nth-child(2) { font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.konf-table tr:last-child td { border-bottom: 0; }
.konf-row--poly { --c: #c77dab; }
.konf-row--vit { --c: #7fa8de; }
.konf-row--min { --c: var(--gold); }

/* ---------- Три уровня ---------- */
.konf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.konf-chips__label { font-size: .85rem; color: var(--muted); margin-right: 4px; }
.konf-chips button { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 29, 22, .5); color: var(--text); font: 600 .88rem/1.2 var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.konf-chips button:hover { border-color: var(--gold); }
.konf-chips button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #0a261d; }

.konf-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.konf-level { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(7, 29, 22, .5); position: relative; }
.konf-level:not(:last-child)::after { content: "›"; position: absolute; right: -19px; top: 120px; width: 16px; text-align: center; font: 800 1.8rem/1 var(--sans); color: var(--gold); }
.konf-level__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.konf-level__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0a261d; font: 800 1rem/1 var(--sans); }
.konf-level h3 { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 800; color: var(--gold-light); line-height: 1.3; }
.konf-level__art { border-radius: 14px; background: rgba(233, 228, 216, .04); padding: 6px; margin-bottom: 16px; }
.konf-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.konf-item { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(201, 164, 92, .16); border-left: 3px solid var(--c); background: rgba(10, 38, 29, .6); transition: opacity .25s, border-color .25s; }
.konf-item--poly { --c: #c77dab; }
.konf-item--vit { --c: #7fa8de; }
.konf-item--min { --c: var(--gold); }
.konf-item__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 6px; }
.konf-item__top b { color: var(--text); }
.konf-item p { margin: 0 0 8px; font-size: .92rem; line-height: 1.55; }
.konf-item__more { font-size: .85rem; font-weight: 700; color: var(--gold-light); text-decoration: none; }
.konf-item__more:hover { text-decoration: underline; }
.konf .is-dim { opacity: .22; }
.konf .is-hit { border-color: var(--gold); }

.konf-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.konf-legend a { margin-left: auto; color: var(--gold-light); }
.konf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 0; }
.konf-dot--poly { background: #c77dab; }
.konf-dot--vit { background: #7fa8de; }
.konf-dot--min { background: var(--gold); }

/* SVG-схема: цвета под тёмный фон сайта */
.konf-svg { display: block; width: 100%; height: auto; font-family: var(--sans); font-size: 6.4px; overflow: visible; }
.konf-svg text { fill: var(--text); }
.konf-svg .ks-muted { fill: var(--muted); }
.konf-svg .ks-strong { fill: var(--gold-light); font-weight: 700; }
.konf-svg .ks-berry, .konf-svg .ks-berry-t { fill: #e3a6cb; }
.konf-svg .ks-blue-t { fill: #a9c6ee; }
.konf-svg .ks-arrhead { fill: var(--gold); }
.konf-svg .ks-arrow { stroke: var(--gold); stroke-width: 1; fill: none; }
.konf-svg .ks-arrow.ks-blue { stroke: #7fa8de; }
.konf-svg .ks-dash { stroke: var(--muted); stroke-width: .8; stroke-dasharray: 2 1.6; fill: none; }
.konf-svg .ks-epi { fill: rgba(233, 228, 216, .07); stroke: rgba(201, 164, 92, .35); stroke-width: .5; }
.konf-svg .ks-nuc ellipse { fill: rgba(233, 228, 216, .16); }
.konf-svg .ks-tj rect { fill: var(--gold); }
.konf-svg .ks-cell { fill: rgba(7, 29, 22, .7); stroke: var(--gold-light); stroke-width: 1.1; }
.konf-svg .ks-cell2 { fill: none; stroke: var(--gold-light); stroke-width: .4; }
.konf-svg .ks-zig { stroke: #e3a6cb; stroke-width: .8; fill: none; }
.konf-svg .ks-mito { fill: rgba(201, 164, 92, .14); stroke: var(--gold); stroke-width: .8; }
.konf-svg .ks-mito-in { stroke: var(--gold); stroke-width: .6; fill: none; }
.konf-svg .ks-ros polygon { fill: rgba(199, 125, 171, .25); stroke: #e3a6cb; stroke-width: .8; }
.konf-svg .ks-ros__t { fill: #f3cde3; font-weight: 800; font-size: 6px; }
.konf-svg .ks-inh { stroke: #7fa8de; stroke-width: 1; fill: none; }
.konf-svg .ks-inh--bar { stroke-width: 1.4; }
.konf-svg .ks-inh.ks-gold { stroke: var(--gold); }
.konf-svg .ks-inh.ks-berry-s { stroke: #c77dab; }
.konf-svg .ks-vessel { fill: rgba(199, 125, 171, .12); stroke: #c77dab; stroke-width: .8; }
.konf-svg .ks-rbc ellipse { fill: #c77dab; }
.konf-svg .ks-box { fill: rgba(7, 29, 22, .7); stroke: var(--gold-light); stroke-width: .8; }
.konf-svg .ks-species { fill: var(--gold-light); font-weight: 700; font-size: 7.4px; }
.konf-svg .ks-species.ks-berry-t { fill: #e3a6cb; }
.konf-svg .ks-enz rect { fill: var(--gold); }
.konf-svg .ks-enz text { fill: #0a261d; font-weight: 800; font-size: 6.8px; }
.konf-svg .ks-cof text { fill: var(--gold); font-weight: 700; }
.konf-svg .ks-pill rect { stroke: none; }
.konf-svg .ks-pill__t { font-weight: 800; fill: #fff; }
.konf-svg .ks-pill--poly rect { fill: #a8457f; }
.konf-svg .ks-pill--vit rect { fill: #3f6fb0; }
.konf-svg .ks-pill--min rect { fill: var(--gold); }
.konf-svg .ks-pill--min .ks-pill__t { fill: #0a261d; }
.konf-svg [data-c] { transition: opacity .25s; }

/* Живая схема: частицы плывут, АФК пульсируют, выведение «течёт». При «уменьшении движения» — статично. */
@media (prefers-reduced-motion: no-preference) {
  .konf-svg .ks-drift { animation: ks-drift 6s ease-in-out infinite alternate; }
  .konf-svg .ks-agg { animation: ks-agg 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
  .konf-svg .ks-ros { animation: ks-ros 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .konf-svg .ks-flow { stroke-dasharray: 4 3; animation: ks-flow 1.2s linear infinite; }
}
@keyframes ks-drift { to { transform: translate(5px, 3px); } }
@keyframes ks-agg { to { transform: scale(.9); } }
@keyframes ks-ros { 50% { transform: scale(1.12); } }
@keyframes ks-flow { to { stroke-dashoffset: -7; } }

/* ---------- Выводы ---------- */
.konf-concl ol { list-style: none; counter-reset: k; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.konf-concl li { counter-increment: k; position: relative; padding: 20px 22px 20px 70px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7, 29, 22, .45); line-height: 1.6; }
.konf-concl li::before { content: counter(k); position: absolute; left: 20px; top: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0a261d; font: 800 1rem/1 var(--sans); }
.konf-disclaimer { margin: 18px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- Проверь себя ---------- */
.konf-quiz { max-width: 860px; }
.konf-q { padding: 20px 22px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7, 29, 22, .45); }
.konf-q__num { font: 800 .78rem/1 var(--sans); letter-spacing: .1em; color: var(--gold); }
.konf-q__text { margin: 8px 0 12px; font-weight: 700; font-size: 1.05rem; }
.konf-q__opts { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.konf.is-js .konf-q__opts { list-style: none; padding: 0; }
.konf-q__opt { width: 100%; min-height: 44px; padding: 11px 16px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 38, 29, .7); color: var(--text); font: 500 .95rem/1.45 var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.konf-q__opt:hover:not(:disabled) { border-color: var(--gold); }
.konf-q__opt:disabled { cursor: default; }
.konf-q__opt.is-correct { border-color: var(--gold); background: rgba(201, 164, 92, .18); }
.konf-q__opt.is-chosen { border-color: #c77dab; background: rgba(199, 125, 171, .12); }
.konf-q__a { margin-top: 12px; font-size: .93rem; color: var(--muted); }
.konf-q__a p { margin: 0; }
.konf-q__a b { color: var(--gold-light); }
.konf-quiz__final { padding: 16px 20px; border-radius: 14px; background: rgba(201, 164, 92, .12); color: var(--gold-light); font-weight: 700; }

/* ---------- Цитирование ---------- */
.konf-cite__box { display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; border: 1px dashed var(--line); border-radius: 16px; background: rgba(7, 29, 22, .45); }
.konf-cite__box p { margin: 0; flex: 1; font-size: .93rem; line-height: 1.6; }
.konf-cite__box .btn { flex: none; }
