/* Карточка врача (шаблон 117): крупное второе фото с растворением снизу. Согласовано 08-10-2026.
   Подключено в шаблоне 117 после specialist.css; откат — убрать строку подключения. */

/* ── десктоп: фото по высоте ВСЕГО верхнего блока (герой + «#01/#02»), растворение кончается ровно
   на нижнем крае серого блока — за него не выходит при любом числе пунктов (правка 08-10).
   Текст «#01/#02» поверх фото. Без блока «#01/#02» фото кончается на нижнем крае героя. ── */
@media (min-width: 1002px) {
  .indiv-page .ip-first-b { position: relative; }
  .indiv-page .ifb-1 { min-height: 440px; }
  .indiv-page .ifb-1 .ifb-item:nth-child(2) { position: static; }
  .indiv-page .ifb-1 .ifb-item:nth-child(2) img {
    position: absolute; z-index: 3; top: 20px; left: 75%; transform: translateX(-50%);
    height: calc(100% - 20px); width: auto; max-width: none; max-height: none; margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .indiv-page .ifb-2 { position: relative; }
  .indiv-page .ifb-2 .ind-exp { position: relative; z-index: 4; }
}

/* ── телефон/планшет: фото крупнее, фон блока к низу перетекает в цвет блока с именем ── */
@media (max-width: 1001px) {
  .indiv-page .ip-first-b .ifb-1 .ifb-item:last-child {
    height: auto !important; padding: 24px 0 0 !important; overflow: hidden !important;
    background: linear-gradient(to bottom, rgba(145,163,176,0) 45%, #91A3B0 92%), url(/img/mobile-back.png) center top / cover no-repeat !important;
  }
  .indiv-page .ip-first-b .ifb-1 .ifb-item:last-child img {
    height: 400px !important; width: auto !important; max-width: none !important; max-height: none !important;
    display: block; margin: 0 auto !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 66%, transparent 98%);
  }
}
