/* ПолиМинТех — линия прогресса проекта и факт-чипы (релиз 4.3)
   Палитра: navy #0B1F36, steel #4E7397, gold #C9A46B, gray #B8C2CD, ivory #FAF7F2 */

.pline { position: relative; margin-top: 52px; margin-bottom: 8px; }
.pline-wrap { position: relative; padding-top: 44px; }
.pline-rail { position: absolute; top: 55px; left: 8.33%; right: 8.33%; height: 6px; background: #E6E0D2; border-radius: 999px; overflow: hidden; }
.pline-fill { display: block; height: 100%; width: 23%; background: linear-gradient(90deg, #0B1F36 0%, #4E7397 70%, #C9A46B 100%); border-radius: 999px; }
.pline-steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: pline; }
.pline-node { position: relative; text-align: center; padding-top: 2px; }
.pline-dot { position: relative; z-index: 2; display: block; width: 26px; height: 26px; margin: 0 auto 18px; border-radius: 50%; background: #FAF7F2; border: 3px solid #B8C2CD; box-sizing: border-box; }
.pline-node.is-done .pline-dot { background: #0B1F36; border-color: #0B1F36; }
.pline-node.is-current .pline-dot { background: #C9A46B; border-color: #0B1F36; box-shadow: 0 0 0 5px rgba(201, 164, 107, 0.28); }
@media (prefers-reduced-motion: no-preference) {
  .pline-node.is-current .pline-dot { animation: pline-pulse 2.4s ease-out infinite; }
  @keyframes pline-pulse {
    0% { box-shadow: 0 0 0 4px rgba(201, 164, 107, 0.35); }
    60% { box-shadow: 0 0 0 11px rgba(201, 164, 107, 0); }
    100% { box-shadow: 0 0 0 4px rgba(201, 164, 107, 0); }
  }
}
.pline-here { position: absolute; z-index: 3; top: -40px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #0B1F36; color: #FAF7F2; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.pline-here::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #0B1F36; border-bottom: 0; }
.pline-year { display: block; font-weight: 700; color: #0B1F36; font-size: 1.12rem; letter-spacing: 0.01em; }
.pline-name { display: block; margin-top: 6px; color: #0B1F36; font-size: 0.95rem; line-height: 1.35; }
.pline-tag { display: inline-block; margin-top: 8px; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: #4E7397; border: 1px solid rgba(78, 115, 151, 0.35); border-radius: 999px; padding: 3px 10px; }
.pline-node.is-current .pline-tag { color: #0B1F36; border-color: #C9A46B; background: rgba(201, 164, 107, 0.16); }
.pline-node.is-future .pline-year, .pline-node.is-future .pline-name { color: rgba(11, 31, 54, 0.55); }
.pline-note { margin-top: 26px; font-size: 0.88rem; color: rgba(11, 31, 54, 0.62); max-width: 760px; }

/* Тёмный вариант (для navy-секций) */
.pline--dark .pline-rail { background: rgba(250, 247, 242, 0.16); }
.pline--dark .pline-dot { background: #0B1F36; border-color: rgba(250, 247, 242, 0.4); }
.pline--dark .pline-node.is-done .pline-dot { background: #FAF7F2; border-color: #FAF7F2; }
.pline--dark .pline-year, .pline--dark .pline-name { color: #FAF7F2; }
.pline--dark .pline-node.is-future .pline-year, .pline--dark .pline-node.is-future .pline-name { color: rgba(250, 247, 242, 0.55); }
.pline--dark .pline-tag { color: #B8C2CD; border-color: rgba(184, 194, 205, 0.4); }
.pline--dark .pline-note { color: rgba(250, 247, 242, 0.6); }
.pline--dark .pline-here { background: #C9A46B; color: #0B1F36; }
.pline--dark .pline-here::after { border-top-color: #C9A46B; }

/* Мобильная версия — вертикальная линия */
@media (max-width: 760px) {
  .pline-wrap { padding-top: 0; }
  .pline-rail { display: none; }
  .pline-steps { display: flex; flex-direction: column; gap: 22px; }
  .pline-node { text-align: left; padding-left: 36px; padding-top: 0; }
  .pline-dot { position: absolute; left: 0; top: 3px; margin: 0; }
  .pline-node:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 26px; bottom: -22px; width: 2px; background: #E6E0D2; }
  .pline--dark .pline-node:not(:last-child)::after { background: rgba(250, 247, 242, 0.16); }
  .pline-node.is-done::after { background: #0B1F36; }
  .pline-here { position: static; transform: none; display: inline-block; margin-bottom: 8px; }
  .pline-here::after { display: none; }
}

/* Факт-чипы */
.factstrip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.factstrip span { display: inline-flex; align-items: center; gap: 6px; background: #FFFFFF; border: 1px solid rgba(11, 31, 54, 0.14); border-radius: 999px; padding: 8px 15px; font-size: 0.86rem; color: #0B1F36; }
.factstrip strong { color: #0B1F36; font-weight: 700; }
.factstrip--dark span { background: rgba(255, 255, 255, 0.06); border-color: rgba(250, 247, 242, 0.22); color: #FAF7F2; }
.factstrip--dark strong { color: #C9A46B; }


/* ── UI-исправления релиза 4.3 (main.css не изменяется: у него SRI-хэш) ── */

/* Пункты меню не должны разрываться на две строки */
.main-nav .nav-link { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1500px) {
  .main-nav .nav-list { gap: 20px; }
  .main-nav .nav-link { font-size: 0.76rem; letter-spacing: 0.04em; }
}

/* Бейдж статуса — с новой строки под подписью раздела, а не встык к ней */
.eyebrow + .status-badge { display: flex; width: fit-content; margin-top: 16px; margin-bottom: 4px; }
