/* Тест на дефицит кальция — счёт, цветная шкала риска, рекомендации, продукты.
   База (q-card, it-progress, it-section-label, result-risk-badge, test-results,
   pa-*) — из calc-phenoage + tool-iron-test. */

/* Подзаголовок блока внутри секции-лейбла */
.ca-block-intro { display: block; font-weight: 500; font-size: 13.5px; color: var(--v2-ink-3); margin-top: 3px; text-transform: none; letter-spacing: 0; }

/* Счёт — на тёмной панели .it-result-head, поэтому светлый */
.ca-score {
  font-family: var(--font-display, 'Cabinet Grotesk', sans-serif);
  font-weight: 700; font-size: 64px; line-height: 1; color: #fff; margin-top: 4px;
  position: relative;
}
.ca-score__unit { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.6); margin: 4px 0 16px; position: relative; }

/* Цветная шкала риска (3 зоны) */
.ca-scale { max-width: 560px; margin: 6px auto 18px; }
.ca-scale__track {
  position: relative; display: flex; height: 46px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--v2-line, #e6e8f0);
}
.ca-scale__zone {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff; line-height: 1.1; text-align: center;
}
.ca-scale__zone small { font-weight: 600; font-size: 10.5px; opacity: .85; margin-top: 2px; }
.ca-scale__zone--low  { background: #10b981; }
.ca-scale__zone--mod  { background: #f59e0b; }
.ca-scale__zone--high { background: #ef4444; }
.ca-scale__marker {
  position: absolute; top: -6px; bottom: -6px; width: 4px; border-radius: 4px;
  background: var(--v2-ink, #13141f); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0,0,0,.25);
  transform: translateX(-50%); transition: left .9s cubic-bezier(.22,.61,.36,1);
}

.ca-risk-desc {
  max-width: 620px; margin: 0 auto 6px; font-size: 15px; line-height: 1.6; color: var(--v2-ink-2);
}

/* Рекомендации */
.ca-recs { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ca-rec {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--v2-bg-alt, #f3f6fb); border: 1px solid var(--v2-line, #e6e8f0);
  border-radius: 12px; padding: 13px 16px;
  font-size: 14.5px; line-height: 1.5; color: var(--v2-ink-2);
}
.ca-rec__icon {
  width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(16,185,129,.14); color: #059669; margin-top: 1px;
}
.ca-rec__icon .material-symbols-outlined { font-size: 17px; }

/* Продукты-источники */
.ca-foods {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 8px 0 18px;
}
@media (max-width: 820px) { .ca-foods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ca-foods { grid-template-columns: repeat(2, 1fr); } }
.ca-food { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ca-food__pic {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: var(--v2-bg-alt, #f3f6fb); display: grid; place-items: center;
  border: 1px solid var(--v2-line, #eef1f7);
}
.ca-food__pic img { width: 100%; height: 100%; object-fit: cover; }
.ca-food__name { font-size: 13px; font-weight: 600; color: var(--v2-ink-2); line-height: 1.3; }

/* Подсказка-заметка */
.ca-note {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(22,200,200,.07); border: 1px solid rgba(22,200,200,.25);
  border-radius: 14px; padding: 16px 18px; margin: 8px 0 4px;
  font-size: 14.5px; line-height: 1.55; color: var(--v2-ink-2);
}
.ca-note .material-symbols-outlined { color: var(--v2-teal-ink, #0ea5a5); flex: 0 0 auto; }

/* Образовательный блок (ml-article/figure — на calcium не грузится metabolic-css) */
.ml-article { margin-top: 8px; }
.ml-article__lead { font-size: 15px; line-height: 1.65; color: var(--v2-ink-2); margin: -8px 0 22px; }
.ml-inline-figure { margin: 30px 0 32px; }   /* больше воздуха над картинкой */
.ml-inline-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--v2-radius, 16px); border: 1px solid var(--v2-line, #e6e8f0);
}
.ml-inline-figure__cap {     /* подпись к картинке — курсив, светлее, как комментарий */
  margin-top: 12px; font-size: 13px; line-height: 1.55;
  font-style: italic; color: var(--v2-ink-3); text-align: center;
}

/* ── Мобильное центрирование hero и заголовков всех разделов ── */
@media (max-width: 768px) {
  /* Hero — всё по центру */
  .pa-hero__text { text-align: center; }
  .pa-hero__title { max-width: 22ch; margin-left: auto; margin-right: auto; }
  .pa-hero__lead { margin-left: auto; margin-right: auto; }
  .pa-hero__meta { justify-content: center; }
  /* Методика: на мобильном влево (по центру только hero, статистика, калькулятор) */
  .pa-method__head { text-align: left; }
  .pa-method__lead { margin-left: 0; margin-right: 0; }
  .pa-calc__title, .pa-calc__subtitle { text-align: center; }
  .pa-calc__subtitle { margin-left: auto; margin-right: auto; }
  .pa-h2,
  .ml-article__lead,
  .ml-inline-figure__cap { text-align: center; }
  .ml-article__lead { margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
  .ca-score { font-size: 52px; }
  .ca-scale__zone { font-size: 12px; }
}
