/* Сосудистый возраст ADVANT'AGE (1-й уровень).
   Дополняет calc-phenoage.css + tool-metabolic-lifestyle.css + tool-fitness-age.css + tool-hypertension.css. */

/* Поле на всю ширину сетки (для «Имя») */
.pa-field--wide { grid-column: 1 / -1; }

/* Две галочки в ряд */
.pa-checks { display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* ── Выноска «наглядное сравнение» ── */
.rf-plain {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 18px 0 22px; padding: 16px 20px;
  border-radius: 14px;
  background: rgba(22, 200, 200, .07);
  border: 1px solid rgba(22, 200, 200, .25);
  border-left: 4px solid #16c8c8;
}
.rf-plain .material-symbols-outlined { color: #0ea5a5; font-size: 24px; flex: 0 0 auto; }
.rf-plain__title {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700; font-size: 14px; color: var(--v2-ink); margin-bottom: 4px;
}
.rf-plain__body { font-size: 14.5px; line-height: 1.6; color: var(--v2-ink-2); }
.rf-plain__body strong { color: var(--v2-ink); }

/* ── 5-летний риск ССЗ ── */
.av-risk { margin: 6px 0 4px; }
.av-risk__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.av-risk__val {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700; font-size: 40px; line-height: 1; letter-spacing: -.02em;
  color: var(--v2-ink); white-space: nowrap;
}
.av-risk__pct { font-family: var(--v2-font); font-size: 18px; font-weight: 600; }
.av-risk__band {
  display: inline-block; padding: 6px 16px; border-radius: 99px;
  font-family: var(--v2-font); font-size: 13px; font-weight: 700; line-height: 1;
  background: #eef1f6; color: var(--v2-ink-2); border: 1px solid var(--v2-border);
}
.av-risk__note { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--v2-ink-2); }

/* Шкала риска: 4 равных сегмента + маркер */
.av-riskscale { margin: 2px 0 0; }
.av-riskscale__track {
  position: relative; display: flex; height: 14px;
  border-radius: 99px; overflow: hidden;
}
.av-riskscale__seg { flex: 1; }
.av-riskscale__seg--low   { background: #10b981; }
.av-riskscale__seg--mid   { background: #f59e0b; }
.av-riskscale__seg--high  { background: #ef4444; }
.av-riskscale__seg--vhigh { background: #b91c1c; }
.av-riskscale__marker {
  position: absolute; top: 50%; width: 4px; height: 26px;
  border-radius: 99px; background: #1e212f;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px var(--v2-surface, #fff);
  transition: left .9s cubic-bezier(.22, .61, .36, 1);
}
.av-riskscale__labels { display: flex; margin-top: 8px; gap: 4px; }
.av-riskscale__lab {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
  font-family: var(--v2-font); font-size: 11.5px; font-weight: 600; line-height: 1.2;
  text-align: center; color: var(--v2-ink-3);
  padding: 5px 4px; border-radius: 8px; transition: background .25s, color .25s;
}
.av-riskscale__lab em { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--v2-ink-3); }
.av-riskscale__lab.is-active { color: #fff; }
.av-riskscale__lab--low.is-active   { background: #10b981; }
.av-riskscale__lab--mid.is-active   { background: #f59e0b; }
.av-riskscale__lab--high.is-active  { background: #ef4444; }
.av-riskscale__lab--vhigh.is-active { background: #b91c1c; }
.av-riskscale__lab.is-active em { color: rgba(255, 255, 255, .85); }

/* ── Карточки уровней риска в статье ── */
.av-levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 8px; }
.av-level {
  border: 1px solid var(--v2-border, #e6e8f0);
  border-left: 4px solid var(--av-tone, #94a3b8);
  border-radius: 14px; padding: 16px 18px; background: var(--v2-surface, #fff);
}
.av-level--low   { --av-tone: #10b981; }
.av-level--mid   { --av-tone: #f59e0b; }
.av-level--high  { --av-tone: #ef4444; }
.av-level--vhigh { --av-tone: #b91c1c; }
.av-level__name {
  font-family: var(--v2-font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700; font-size: 15px; color: var(--v2-ink);
}
.av-level__range { font-family: var(--v2-font); font-size: 13px; font-weight: 700; color: var(--av-tone); margin: 2px 0 8px; }
.av-level__desc { font-size: 13.5px; line-height: 1.55; color: var(--v2-ink-2); }

@media (max-width: 560px) {
  .av-levels { grid-template-columns: 1fr; }
  .av-riskscale__lab { font-size: 10.5px; }
  .av-riskscale__lab em { display: none; }
  .av-risk__val { font-size: 34px; }
}
