/* ONCO.SIGNAL — Раздел 01 «Женская онкология». Только то, чего нет в style.css. */

/* ---------- введение ---------- */
.onc-intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.onc-intro__title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 16px; }
.onc-intro__side { display: grid; gap: 14px; align-content: start; }
.onc-intro__card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; }
.onc-intro__card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.onc-intro__card b { color: var(--ink); }
@media (min-width: 900px) {
  .onc-intro { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
  .onc-intro__side { padding-top: 34px; }
}

/* ---------- выбор заболевания ---------- */
.onc-diseases { padding-top: 8px; }
.onc-pills { margin-bottom: 20px; }

/* ---------- раскладка: схема + вкладки ---------- */
.onc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.onc-figcard { padding: 18px; }
.onc-fig { margin-inline: auto; }
.onc-fig[data-shape="tall"] { max-width: 440px; }
.onc-fig .hotspot { width: clamp(26px, 8%, 38px); }
.onc-fig .hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.onc-fig.is-swap img { animation: onc-fade .4s var(--ease); }
.onc-figcard .hotspot-info { min-height: 96px; }
.onc-figcard .figure-caption { margin-bottom: 0; }

@media (min-width: 1000px) {
  .onc-layout { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 44px; align-items: start; }
  .onc-fig[data-shape="tall"] { max-width: none; }
  .onc-figcard .hotspot-info { min-height: 120px; }
}
@media (min-width: 1000px) and (min-height: 900px) {
  .onc-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- блок заболевания ---------- */
.onc-disease .kicker { margin-bottom: 10px; }
.onc-disease .h2 { font-size: clamp(28px, 3.6vw, 40px); }
.onc-sub { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 620px; }
.onc-tabs__label { margin: 22px 0 2px; font-size: 15px; color: var(--muted); }
@media (min-width: 1000px) {
  /* на десктопе все шесть вкладок видны сразу: в одну строку на 1280+, в две — на 1000–1200 */
  .onc-disease .tabs { flex-wrap: wrap; overflow: visible; }
  .onc-disease .tabs button { flex: none; padding-inline: 10px; font-size: 15.5px; }
}
.onc-disease:not([hidden]) { animation: onc-fade .35s var(--ease); }
.onc-disease .tab-panel:not([hidden]) { animation: onc-fade .35s var(--ease); }
@keyframes onc-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .onc-disease:not([hidden]), .onc-disease .tab-panel:not([hidden]), .onc-fig.is-swap img { animation: none; }
}

/* ритм содержимого вкладки */
.onc-disease .tab-panel > * + * { margin-top: 18px; }
.onc-disease .tab-panel > .onc-h { margin-top: 34px; }
.onc-disease .tab-panel > .onc-h:first-child { margin-top: 4px; }
.onc-disease .tab-panel > .onc-h + * { margin-top: 12px; }
.onc-h { font-size: 20px; font-weight: 700; line-height: 1.3; }
.onc-lead { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.onc-lead b { color: var(--ink); }
.onc-lead .tag { vertical-align: 1px; }
.onc-prose p:last-child { margin-bottom: 0; }

/* сетка карточек внутри вкладки */
.onc-grid { display: grid; gap: 12px; }
@media (min-width: 600px) {
  .onc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .onc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.onc-card { padding: 18px 20px; border-radius: var(--r-md); box-shadow: none; }
.onc-card h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.onc-card p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.onc-grid .num-card h4 { margin-bottom: 6px; }

/* «Интересно знать» с иконкой */
.onc-fact { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.onc-fact p { margin: 0; }
.onc-fact__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent); }
.onc-fact__ico svg { width: 18px; height: 18px; }

/* методы обследования */
.onc-methods { display: grid; gap: 12px; }
.onc-method { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px; border-radius: var(--r-md); box-shadow: none; }
.onc-method h4 { margin: 8px 0 6px; }
.onc-method p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.onc-method p + p { margin-top: 8px; }
.onc-strong { color: var(--ink) !important; font-weight: 700; }

/* вопрос-ответ */
.onc-qa { padding: 22px; border-radius: var(--r-lg); background: var(--surface-pink); }
.onc-qa h4 { margin-bottom: 8px; }
.onc-qa p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.onc-qa p + p { margin-top: 10px; }

/* шаги ВПЧ → рак */
.onc-steps li { align-items: center; font-weight: 600; color: var(--ink); }
.onc-steps li:last-child::before { background: var(--accent); color: #fff; }

/* ВПЧ-тест vs ПАП-тест */
.onc-compare__q { margin-top: 10px !important; font-family: var(--ff-display); font-weight: 700; font-size: 17px !important; line-height: 1.35 !important; color: var(--ink) !important; }

/* миф на странице — тег сверху */
.onc-disease .myth .tag { background: var(--accent-100); }

/* «Что важно запомнить» */
.onc-remember {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  margin-top: 32px; padding: 22px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
}
.onc-remember h3 { margin: 8px 0 12px; }
.onc-remember .dots li { font-size: 15.5px; line-height: 1.55; }

/* ---------- другие опухоли ---------- */
.onc-other { margin-top: 24px; }
.onc-rare h3 { margin-bottom: 10px; }
.onc-rare p { font-size: 15.5px; line-height: 1.55; margin-bottom: .7em; }
.onc-rare p:last-child { margin-bottom: 0; }
.onc-rare__act { color: var(--accent-600) !important; font-weight: 600; }

/* ---------- главная мысль ---------- */
.onc-final__title { max-width: 760px; margin-top: 2px; }
.onc-final__grid { display: grid; gap: 4px 40px; margin-top: 22px; max-width: 980px; }
.onc-final__grid p { font-size: 17px; line-height: 1.65; }
.onc-final__tagline { margin-top: 22px; font-family: var(--ff-display); font-weight: 700; font-size: 18px; color: #fff !important; }
.onc-final .btn-row { margin-top: 22px; }
@media (min-width: 900px) { .onc-final__grid { grid-template-columns: 1fr 1fr; } }

.onc-legal { display: grid; gap: 16px; margin-top: 22px; }
.onc-legal .tiny { margin: 0; max-width: 760px; }
.onc-legal .tiny b { color: var(--danger); }
.onc-sources { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--r-md); box-shadow: none; }
.onc-sources p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .onc-legal { grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; } }

/* ---------- крупный план органа (во вкладке «Анатомия») ---------- */
.onc-zoom { padding: 16px; border-radius: var(--r-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.onc-disease .tab-panel > .onc-zoom { margin-top: 26px; }
.onc-zoom__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.onc-zoom__head .onc-h { margin: 0; font-size: 18px; }
.onc-zoom__seg { gap: 8px; margin-bottom: 14px; }
.onc-zoom__seg button { min-height: 42px; padding: 0 16px; font-size: 15px; }
.onc-zoom__view { display: grid; gap: 14px; }
.onc-zoom__view[hidden] { display: none; }
.onc-zoom__fig { width: 100%; max-width: 420px; margin-inline: auto; background: #f9e2f0; }
.onc-zoom__fig .hotspot { width: clamp(24px, 7.5%, 34px); }
.onc-zoom__fig .hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.onc-zoom__info { margin-top: 0; min-height: 112px; background: #fff; border: 1px solid var(--line); }
.onc-zoom__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.onc-zoom__chips button {
  min-height: 36px; padding: 0 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.onc-zoom__chips button:hover { border-color: var(--accent-300); color: var(--accent); }
.onc-zoom__chips button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.onc-zoom .figure-caption { margin: 10px 0 0; font-size: 13.5px; }
.onc-zoom__view:not([hidden]) { animation: onc-fade .35s var(--ease); }
@media (min-width: 600px) {
  .onc-zoom { padding: 20px; }
  .onc-zoom__view { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .onc-zoom__fig { max-width: none; }
}

/* ---------- стадии (вкладка «Стадии») ---------- */
.stg { display: grid; gap: 18px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.stg__ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.stg__ctrl-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.stg__seg { flex: 1 1 240px; flex-wrap: nowrap; gap: 6px; max-width: 420px; }
.stg__seg button { flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 6px; font-family: var(--ff-display); font-weight: 700; font-size: 16px; }

.stg__stage { display: grid; gap: 16px; align-items: start; }
.stg__fig { border-radius: var(--r-md); overflow: hidden; background: #f9e2f0; border: 1px solid var(--line); }
.stg__fig svg { width: 100%; height: auto; }
.stg__fig.is-swap svg { animation: onc-fade .35s var(--ease); }
.stg__cap { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.stg__count { margin: 0 0 4px; font-family: var(--ff-display); font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--kicker); }
.stg__title { font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--accent-600); }

.stg__facts { display: grid; gap: 8px; margin: 14px 0 0; }
.stg__fact { padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg-soft); }
.stg__fact dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stg__fact dd { margin: 3px 0 0; font-size: 15.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }

.stg__meter { display: block; height: 6px; margin-top: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.stg__meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent-300); }
.stg__meter--share i { background: #b3a3e0; }

.stg__legend { list-style: none; display: grid; gap: 8px; margin-top: 14px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.stg__legend li { display: flex; align-items: center; gap: 10px; transition: opacity .2s; }
.stg__legend li.is-off { opacity: .4; }
.stg__sw { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; }
.stg__sw--tumor { background: var(--accent); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-strong); }
.stg__sw--node { background: var(--plum); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line-strong); transform: scale(.85); }
.stg__sw--amber { border-radius: 5px; background: repeating-linear-gradient(45deg, #c98a1c 0 3px, #f5e3c4 3px 7px); box-shadow: 0 0 0 1.5px #c98a1c; }
.stg__sw--meta { border-radius: 5px; background: #fff; box-shadow: 0 0 0 1.5px var(--line-strong); }
.stg__sw--meta::after { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); }
.stg__sw--dash { height: 10px; border-radius: 3px; background: #d995b2 linear-gradient(90deg, #fff 0 5px, transparent 5px 9px) 0 50% / 9px 3px repeat-x; }

.stg__nums { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-top: 14px; counter-reset: stgn; font-size: 13.5px; line-height: 1.3; color: var(--ink-2); }
.stg__nums li { counter-increment: stgn; display: flex; align-items: center; gap: 8px; }
.stg__nums li::before { content: counter(stgn); flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--plum); background: #fff; color: var(--plum); font: 700 11.5px/1 var(--ff-display); }
.stg__hint { display: none; margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* таблица (видна с 720 px; на узком экране — переключатель и карточка стадии) */
.stg__wrap { display: none; }
.stg__table { min-width: 0; table-layout: fixed; font-size: 14px; line-height: 1.45; }
.stg__table td { padding: 12px 10px; transition: background .2s; }
.stg__table thead th { padding: 8px 6px; vertical-align: bottom; text-align: center; letter-spacing: 0; text-transform: none; transition: background .2s; }
.stg__table thead th:first-child { width: 21%; padding: 12px 10px; text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.stg__table tbody th { padding: 12px 10px; border-top: 1px solid var(--line); background: none; vertical-align: top; text-align: left; font-family: var(--ff-text); font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.stg__table td.is-on { background: var(--accent-100); color: var(--ink); font-weight: 600; }
.stg__table thead th.is-on { background: var(--accent); }
.stg__col {
  display: grid; justify-items: center; gap: 6px; width: 100%; padding: 6px 2px 4px;
  border: 0; border-radius: 12px; background: none;
  font-family: var(--ff-display); font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink);
}
.stg__mini { display: block; width: 100%; max-width: 120px; border-radius: 10px; overflow: hidden; background: #f9e2f0; box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow .2s; }
.stg__mini svg { width: 100%; height: auto; }
.stg__col:hover .stg__mini { box-shadow: 0 0 0 2px var(--accent-300); }
.stg__table thead th.is-on .stg__col { color: #fff; }
.stg__table thead th.is-on .stg__mini { box-shadow: 0 0 0 2px #fff; }
.stg__col:focus-visible { outline-color: var(--plum); }

.stg__note { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-pink); font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.stg__note-ico svg { width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }

@media (min-width: 600px) {
  .stg__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  /* шейка матки: широкая схема — на всю ширину, подписи под ней в две колонки */
  .stg[data-stg="cervix"] .stg__stage { grid-template-columns: minmax(0, 1fr); }
  .stg[data-stg="cervix"] .stg__figwrap { width: 100%; max-width: 600px; margin-inline: auto; }
  .stg[data-stg="cervix"] .stg__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 28px; align-items: start; }
  .stg[data-stg="cervix"] .stg__info > :not(.stg__legend):not(.stg__nums) { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .stg { padding: 22px; }
  .stg__wrap { display: block; }
  .stg__facts { display: none; }
  .stg__hint { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .onc-zoom__view:not([hidden]), .stg__fig.is-swap svg { animation: none; }
}

/* подстадии (эндометрий) и широкая кнопка «Норма» (яичники) */
.stg__seg button[data-wide] { flex-grow: 1.9; font-size: 15px; }
.stg__subs { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--bg-soft); border: 1px solid var(--line); }
.stg__subs[hidden] { display: none; }
.stg__subs-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stg__subseg { gap: 6px; flex-wrap: nowrap; }
.stg__subseg button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 0 6px; font-family: var(--ff-display); font-weight: 700; font-size: 14.5px; }
.stg__subtext { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.stg__subtext b { color: var(--accent-600); }
.stg__sublist { list-style: none; display: grid; gap: 6px; margin: 0; }
.stg__sublist li { line-height: 1.4; }
.stg__sublist b { color: var(--accent-600); }
.stg__sw--basin { border-radius: 5px; background: rgba(242,220,232,.8); box-shadow: inset 0 0 0 2px #fff; outline: 2px dashed #c98aa9; outline-offset: -2px; }
@media (min-width: 600px) {
  .stg[data-stg="ovary"] .stg__stage, .stg[data-stg="endometrium"] .stg__stage { grid-template-columns: minmax(0, 1fr); }
  .stg[data-stg="ovary"] .stg__figwrap, .stg[data-stg="endometrium"] .stg__figwrap { width: 100%; max-width: 600px; margin-inline: auto; }
  .stg[data-stg="ovary"] .stg__info, .stg[data-stg="endometrium"] .stg__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 28px; align-items: start; }
  .stg[data-stg="ovary"] .stg__info > :not(.stg__legend):not(.stg__nums),
  .stg[data-stg="endometrium"] .stg__info > :not(.stg__legend):not(.stg__nums) { grid-column: 1 / -1; }
}
