/* Рабочий журнал ОЭ 20-24.11.2026: правки группы profiles */

/* №336, 338, 340, 346 — фоновый баннер профайлов трактора, машины, мини-, лесной техники и спецтехники.
   Раньше у трактора, мини- и лесной техники он стоял подложкой (position:absolute; z-index:-1) под
   блоком модели и уходил под белый фон страницы и фото модели — на сайте его не было видно.
   Теперь — полосой во всю ширину контента над блоком модели (разметка в профайлах). */
body .tractor-profile__banner,
body .mini-profile__banner,
body .forest-profile__banner,
body .profile-banner {
  position: static; inset: auto; z-index: auto;
  overflow: hidden; margin: 24px 0 0; pointer-events: none;
}
body .tractor-profile__banner img, body .tractor-profile__banner video,
body .mini-profile__banner img, body .mini-profile__banner video,
body .forest-profile__banner img, body .forest-profile__banner video,
body .profile-banner img, body .profile-banner video {
  display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover;
}
@media (max-width: 600px) {
  body .tractor-profile__banner, body .mini-profile__banner,
  body .forest-profile__banner, body .profile-banner { margin-top: 16px; }
}

/* №210 п. 2, №220, №224 — кружок выбора в списке стран («Подобрать машины / оборудование»)
   стоит по первой строке пункта, а не посередине двух строк (телефон). Высота строки 1.4,
   кружок 12 px: сдвиг (1.4em - 12px) / 2. */
.country-select label.checkbox { align-items: flex-start; }
.country-select label.checkbox > .checkmark { flex-shrink: 0; margin-top: calc(0.7em - 6px); }

/* №222 — недоступный сертификат / протокол: подсказка «Документ не предоставлен…».
   Профайл оборудования мини-техники выводил её только атрибутом title (на телефоне не видно) —
   теперь блоком, как у с/х машины и оборудования лесной техники; показ по касанию (фокус). */
.machine-hero__cert--off { position: relative; cursor: default; }
.machine-hero__cert--off:focus { outline: none; }
.machine-hero__cert--off .machine-hero__hint {
  position: absolute; left: calc(100% + 18px); top: 50%; transform: translateY(-50%);
  display: none; z-index: 6; width: max-content; max-width: 380px;
  padding: 14px 18px; background: #fff; border: 1px solid var(--c-border, #ccc);
  color: var(--c-text-faint, #B6BDC4); font-size: 16px; line-height: 1.35;
  text-decoration: none; text-align: left; white-space: normal; cursor: default;
}
.machine-hero__cert--off:hover .machine-hero__hint,
.machine-hero__cert--off:focus .machine-hero__hint,
.machine-hero__cert--off:focus-within .machine-hero__hint,
.machine-hero__cert--off:active .machine-hero__hint { display: block; }
/* Телефон и планшет: справа от ссылки места нет (подсказка уходила за край экрана) — под ссылкой. */
@media (max-width: 1023px) {
  .machine-hero__cert--off .machine-hero__hint {
    left: 0; top: calc(100% + 8px); transform: none;
    width: max-content; max-width: min(380px, calc(100vw - 72px));
  }
}
/* Профайл спецтехники: подсказка у недоступного сертификата — и по касанию, и не шире экрана. */
.spec-profile__doc--off.custom-hint:focus { outline: none; }
.spec-profile__doc--off.custom-hint:focus::after,
.spec-profile__doc--off.custom-hint:active::after {
  content: attr(data-title);
  position: absolute; top: 125%; left: 0; z-index: 6;
  background-color: #fff; color: rgba(42, 57, 72, 0.53); border: 1px solid #ccc;
  padding: 5px 10px; font-size: 12px; text-transform: initial;
  min-width: 149px; max-width: min(260px, calc(100vw - 72px));
}

/* №216 п. 2 — «Сохранить в мою спецтехнику» у гостя теперь кнопка (открывает окно входа):
   вид прежний — неактивная серая. */
.spec-profile__save button.btn--off { font: inherit; background: transparent; position: relative; }

/* №270–272 — описание модели мини-техники (и лесной — тот же блок) по макету: Akrobat, тёмный
   цвет #2A3948, 18 px, полужирный — как пояснение под изображением в макете профайла BELARUS 92П.
   Было 13 px светло-серым. */
body .mini-profile__description,
body .forest-profile__description {
  font-family: var(--font-base);
  font-size: 18px; line-height: 1.6; font-weight: 700; color: #2A3948;
}
body .mini-profile__description *,
body .forest-profile__description * { font-family: inherit; color: inherit; }
@media (max-width: 600px) {
  body .mini-profile__description,
  body .forest-profile__description { font-size: 16px; line-height: 1.5; }
}
